Information processing apparatus, information processing method, and program

ABSTRACT

There is provided an information processing apparatus including a reward estimator generator using action history data, including state data expressing a state, action data expressing an action taken by an agent, and a reward value expressing a reward obtained as a result of the action, as learning data to generate, through machine learning, a reward estimator estimating a reward value from inputted state data and action data. The reward estimator generator includes: a basis function generator generating a plurality of basis functions; a feature amount vector calculator calculating feature amount vectors by inputting state data and action data in the action history data into the basis functions; and an estimation function calculator calculating an estimation function estimating the reward value included in the action history data from the feature amount vectors according to regressive/discriminative learning. The reward estimator includes the plurality of basis functions and the estimation function.

BACKGROUND

The present disclosure relates to an information processing apparatus,an information processing method, and a program.

In recent years, attention has been focused on a method of mechanicallyextracting feature amounts from an arbitrary data group for which it isdifficult to quantitatively determine features. For example, a method isknown for automatically constructing an algorithm that inputs arbitrarymusic data and mechanically extracts a music genre to which such musicdata belongs. Music genres such as jazz, classical, and pop are notquantitatively decided by the types of musical instruments or the styleof playing. For this reason, it was conventionally thought difficult tomechanically extract the genre of music data when arbitrary music datais provided.

However, in reality, features that decide the genre of a piece of musicare latently included in a combination of various information, such asthe combination of intervals included in the music data, the way inwhich the intervals are combined, the combination of types ofinstruments, and the structure of the melody line and/or the bass line.For this reason, on the assumption that it might be possible toautomatically construct an algorithm (or “feature amount extractiondevice”) for extracting such features through machine learning, researchhas been conducted into feature amount extraction devices. One result ofsuch research is the automated construction method for a feature amountextraction device based on a genetic algorithm disclosed in JapaneseLaid-Open Patent Publication No. 2009-48266. The expression “geneticalgorithm” refers to an algorithm that considers selections, crosses,and mutations of elements in a process of machine learning in the sameway as in the process of biological evolution.

By using the automated construction algorithm for a feature amountextraction device disclosed in the cited publication, it is possible toautomatically construct a feature amount extraction device thatextracts, from arbitrary music data, the music genre to which the musicdata belongs. The automated construction algorithm for a feature amountextraction device disclosed in the cited publication also has extremelywide applicability and it is possible to automatically construct afeature amount extraction device that extracts feature amounts of anarbitrary data group from such data group without being limited to musicdata. For this reason, there is expectation that the automatedconstruction algorithm for a feature amount extraction device disclosedin the cited publication can be applied to feature amount analysis ofmanmade data, such as music data and/or video data, and to featureamount analysis of various observed values present in the natural world.

SUMMARY

The present inventors investigated whether, by further extending thetechnology of the cited publication, it is possible to develop atechnology that automatically constructs an algorithm for causing anagent to act intelligently. During such investigation, the presentinventors focused on a technology that automatically constructs athought routine for deciding an action to be selected out of the actionsthat an agent can take in a particular state. The present disclosurerelates to such technology and aims to provide a novel and improvedinformation processing apparatus, an information processing method, anda program capable of automatically constructing an estimator thatoutputs information that is decisive when selecting an action to betaken by an agent.

According to an embodiment of the present disclosure, there is providedan information processing apparatus, including a reward estimatorgenerating unit using action history data, which includes state dataexpressing a state of an agent, action data expressing an action takenby the agent in the state, and a reward value expressing a rewardobtained by the agent as a result of the action, as learning data togenerate, through machine learning, a reward estimator that estimates areward value from the inputted state data and the action data. Thereward estimator generating unit includes a basis function generatingunit generating a plurality of basis functions by combining a pluralityof processing functions, a feature amount vector calculating unitcalculating feature amount vectors by inputting the state data and theaction data included in the action history data into the plurality ofbasis functions, and an estimation function calculating unit calculatingan estimation function that estimates the reward value included in theaction history data from the feature amount vectors according toregressive/discriminative learning. The reward estimator includes theplurality of basis functions and the estimation function.

Further, according to another embodiment of the present disclosure,there is provided an information processing apparatus, including a scorecalculating unit calculating, based on action history data includingstate data expressing a state of an agent, action data expressing anaction taken by the agent in the state, and a reward value expressing areward obtained by the agent as a result of the action, scores for eachaction corresponding to respective state data according to a conditionwhere a high score is assigned to an action taken by an agent whoobtained a large reward and an action not taken by an agent who obtaineda small reward and a low score is assigned to an action not taken by theagent who obtained a large reward and an action taken by the agent whoobtained a small reward, and a score estimator generating unitgenerating, according to machine learning and using the action historydata and the score for each action as learning data, a score estimatorthat estimates a score for each action from state data that has beeninputted. The score estimator generating unit includes a basis functiongenerating unit generating a plurality of basis functions by combining aplurality of processing functions, a feature amount vector calculatingunit calculating feature amount vectors by inputting the state dataincluded in the action history data into the plurality of basisfunctions, and an estimation function calculating unit calculating anestimation function that estimates the score for each action from thefeature amount vectors according to regressive/discriminative learning.The score estimator includes the plurality of basis functions and theestimation function.

Further, according to another embodiment of the present disclosure,there is provided an information processing method, including usingaction history data, which includes state data expressing a state of anagent, action data expressing an action taken by the agent in the state,and a reward value expressing a reward obtained by the agent as a resultof the action, as learning data to generate, through machine learning, areward estimator that estimates a reward value from the inputted statedata and the action data. Generating the reward estimator includesgenerating a plurality of basis functions by combining a plurality ofprocessing functions, calculating feature amount vectors by inputtingthe state data and the action data included in the action history datainto the plurality of basis functions, and calculating an estimationfunction that estimates the reward value included in the action historydata from the feature amount vectors according toregressive/discriminative learning. The reward estimator includes theplurality of basis functions and the estimation function.

Further, according to another embodiment of the present disclosure,there is provided an information processing method, includingcalculating, based on action history data including state dataexpressing a state of an agent, action data expressing an action takenby the agent in the state, and a reward value expressing a rewardobtained by the agent as a result of the action, scores for each actioncorresponding to respective state data according to a condition where ahigh score is assigned to an action taken by an agent who obtained alarge reward and an action not taken by an agent who obtained a smallreward and a low score is assigned to an action not taken by the agentwho obtained a large reward and an action taken by the agent whoobtained a small reward, and generating, according to machine learningand using the action history data and the score for each action aslearning data, a score estimator that estimates a score for each actionfrom state data that has been inputted. Generating the score estimatorincludes generating a plurality of basis functions by combining aplurality of processing functions, calculating feature amount vectors byinputting the state data included in the action history data into theplurality of basis functions, and calculating an estimation functionthat estimates the score for each action from the feature amount vectorsaccording to regressive/discriminative learning. The score estimatorincludes the plurality of basis functions and the estimation function.

Further, according to another embodiment of the present disclosure,there is provided a program causing a computer to realize a rewardestimator generating function using action history data, which includesstate data expressing a state of an agent, action data expressing anaction taken by the agent in the state, and a reward value expressing areward obtained by the agent as a result of the action, as learning datato generate, through machine learning, a reward estimator that estimatesa reward value from the inputted state data and the action data. Thereward estimator generating function includes a basis functiongenerating function generating a plurality of basis functions bycombining a plurality of processing functions, a feature amount vectorcalculating function calculating feature amount vectors by inputting thestate data and the action data included in the action history data intothe plurality of basis functions, and an estimation function calculatingunit calculating an estimation function that estimates the reward valueincluded in the action history data from the feature amount vectorsaccording to regressive/discriminative learning. The reward estimatorincludes the plurality of basis functions and the estimation function.

Further, according to another embodiment of the present disclosure,there is provided a program causing a computer to realize a scorecalculating function calculating, based on action history data includingstate data expressing a state of an agent, action data expressing anaction taken by the agent in the state, and a reward value expressing areward obtained by the agent as a result of the action, scores for eachaction corresponding to respective state data according to a conditionwhere a high score is assigned to an action taken by an agent whoobtained a large reward and an action not taken by an agent who obtaineda small reward and a low score is assigned to an action not taken by theagent who obtained a large reward and an action taken by the agent whoobtained a small reward, and a score estimator generating functiongenerating, according to machine learning and using the action historydata and the score for each action as learning data, a score estimatorthat estimates a score for each action from state data that has beeninputted. The score estimator generating function includes a basisfunction generating function generating a plurality of basis functionsby combining a plurality of processing functions, a feature amountvector calculating function calculating feature amount vectors byinputting the state data included in the action history data into theplurality of basis functions, and an estimation function calculatingfunction calculating an estimation function that estimates the score foreach action from the feature amount vectors according toregressive/discriminative learning. The score estimator includes theplurality of basis functions and the estimation function.

According to another embodiment of the present disclosure, there isprovided a computer-readable recording medium on which the programdescribed above has been recorded.

According to the embodiments of the present disclosure described above,it is possible to automatically construct an estimator that outputsinformation that is decisive when selecting an action to be taken by anagent.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a diagram useful in explaining an automated constructionmethod for an estimator;

FIG. 2 is a diagram useful in explaining an automated constructionmethod for an estimator;

FIG. 3 is a diagram useful in explaining an automated constructionmethod for an estimator;

FIG. 4 is a diagram useful in explaining an automated constructionmethod for an estimator;

FIG. 5 is a diagram useful in explaining an automated constructionmethod for an estimator;

FIG. 6 is a diagram useful in explaining an automated constructionmethod for an estimator;

FIG. 7 is a diagram useful in explaining an automated constructionmethod for an estimator;

FIG. 8 is a diagram useful in explaining an automated constructionmethod for an estimator;

FIG. 9 is a diagram useful in explaining an automated constructionmethod for an estimator;

FIG. 10 is a diagram useful in explaining an automated constructionmethod for an estimator;

FIG. 11 is a diagram useful in explaining an automated constructionmethod for an estimator;

FIG. 12 is a diagram useful in explaining an automated constructionmethod for an estimator;

FIG. 13 is a diagram useful in explaining an automated constructionmethod for an estimator based on online learning;

FIG. 14 is a diagram useful in explaining a method of integrating datasets;

FIG. 15 is a diagram useful in explaining a method of integrating datasets;

FIG. 16 is a diagram useful in explaining a method of integrating datasets;

FIG. 17 is a diagram useful in explaining a method of integrating datasets;

FIG. 18 is a diagram useful in explaining a method of integrating datasets;

FIG. 19 is a diagram useful in explaining a method of integrating datasets;

FIG. 20 is a diagram useful in explaining a method of integrating datasets;

FIG. 21 is a diagram useful in explaining a method of integrating datasets;

FIG. 22 is a diagram useful in explaining a method of integrating datasets;

FIG. 23 is a diagram useful in explaining a method of integrating datasets;

FIG. 24 is a diagram useful in explaining a method of integrating datasets;

FIG. 25 is a diagram useful in explaining a method of integrating datasets;

FIG. 26 is a diagram useful in explaining a method of integrating datasets;

FIG. 27 is a diagram useful in explaining a method of integrating datasets;

FIG. 28 is a diagram useful in explaining a method of integrating datasets;

FIG. 29 is a diagram useful in explaining a method of integrating datasets;

FIG. 30 is a diagram useful in explaining a method of integrating datasets;

FIG. 31 is a diagram useful in explaining a method of integrating datasets;

FIG. 32 is a diagram useful in explaining a method of integrating datasets;

FIG. 33 is a diagram useful in explaining a method of integrating datasets;

FIG. 34 is a diagram useful in explaining the configuration of a thoughtroutine;

FIG. 35 is a diagram useful in explaining the configuration of a thoughtroutine;

FIG. 36 is a diagram useful in explaining the configuration of a thoughtroutine;

FIG. 37 is a diagram useful in explaining the configuration of a thoughtroutine;

FIG. 38 is a diagram useful in explaining a method of constructing athought routine;

FIG. 39 is a diagram useful in explaining an example functionalconfiguration of an information processing apparatus 10;

FIG. 40 is a diagram useful in explaining an example functionalconfiguration of the information processing apparatus 10;

FIG. 41 is a diagram useful in explaining an efficient method ofconstructing a reward estimator;

FIG. 42 is a diagram useful in explaining an efficient method ofconstructing a reward estimator;

FIG. 43 is a diagram useful in explaining the configuration of a thoughtroutine that uses an action score estimator;

FIG. 44 is a diagram useful in explaining the configuration of a thoughtroutine that uses an action score estimator;

FIG. 45 is a diagram useful in explaining a method of estimating areward using a predictor;

FIG. 46 is a diagram useful in explaining a method of estimating areward using a predictor;

FIG. 47 is a diagram useful in explaining a method of estimating areward using a predictor;

FIG. 48 is a diagram useful in explaining an application to tic-tac-toe;

FIG. 49 is a diagram useful in explaining an application to tic-tac-toe;

FIG. 50 is a diagram useful in explaining an application to tic-tac-toe;

FIG. 51 is a diagram useful in explaining an application to tic-tac-toe;

FIG. 52 is a diagram useful in explaining an application to tic-tac-toe;

FIG. 53 is a diagram useful in explaining an application to tic-tac-toe;

FIG. 54 is a diagram useful in explaining an application to tic-tac-toe;

FIG. 55 is a diagram useful in explaining an application to a fightinggame;

FIG. 56 is a diagram useful in explaining an application to a fightinggame;

FIG. 57 is a diagram useful in explaining an application to a fightinggame;

FIG. 58 is a diagram useful in explaining an application to a fightinggame;

FIG. 59 is a diagram useful in explaining an application to a fightinggame;

FIG. 60 is a diagram useful in explaining an application to a fightinggame;

FIG. 61 is a diagram useful in explaining an application to a fightinggame;

FIG. 62 is a diagram useful in explaining an application to a fightinggame;

FIG. 63 is a diagram useful in explaining an application to a “connectfive” game;

FIG. 64 is a diagram useful in explaining an application to a “connectfive” game;

FIG. 65 is a diagram useful in explaining an application to poker;

FIG. 66 is a diagram useful in explaining an application to poker;

FIG. 67 is a diagram useful in explaining an application to poker;

FIG. 68 is a diagram useful in explaining an application to arole-playing game;

FIG. 69 is a diagram useful in explaining an application to arole-playing game;

FIG. 70 is a diagram useful in explaining an application to arole-playing game;

FIG. 71 is a diagram useful in explaining an application to arole-playing game;

FIG. 72 is a diagram useful in explaining an application to arole-playing game;

FIG. 73 is a diagram useful in explaining an application to arole-playing game;

FIG. 74 is a diagram useful in explaining an application to arole-playing game;

FIG. 75 is a diagram useful in explaining an application to arole-playing game;

FIG. 76 is a diagram useful in explaining an application to arole-playing game;

FIG. 77 is a diagram useful in explaining an application to arole-playing game;

FIG. 78 is a diagram useful in explaining an application to arole-playing game;

FIG. 79 is a diagram useful in explaining an application to arole-playing game; and

FIG. 80 is a diagram useful in explaining an example hardwareconfiguration capable of realizing the functions of an informationprocessing apparatus.

DETAILED DESCRIPTION OF THE EMBODIMENT(S)

Hereinafter, preferred embodiments of the present disclosure will bedescribed in detail with reference to the appended drawings. Note that,in this specification and the appended drawings, structural elementsthat have substantially the same function and structure are denoted withthe same reference numerals, and repeated explanation of thesestructural elements is omitted.

Order of Explanation

The order of the following explanation will first be described in brief.

The fundamental technology according to an embodiment of the presentdisclosure will be described first. More specifically, an automatedconstruction method for an estimator will be described first withreference to FIGS. 1 to 12. After that, an automated construction methodfor an estimator based on online learning will be described withreference to FIG. 13.

Next, a method of integrating data sets will be described with referenceto FIGS. 14 to 16. After that, an efficient method of sampling data setswill be described with reference to FIGS. 17 to 23. Next, an efficientmethod of weighting will be described with reference to FIGS. 24 to 27.An efficient method combining sampling and weighting data sets will thenbe described with reference to FIG. 28. After that, other methods ofsampling and weighting data sets will be described with reference toFIGS. 29 to 33.

The configuration of a thought routine and a method of constructing athought routine will then be described with reference to FIGS. 34 to 38.After that, the functional configuration of an information processingapparatus 10 according to an embodiment of the present disclosure willbe described with reference to FIGS. 39 and 40. Next, an efficientmethod of constructing a reward estimator will be described withreference to FIGS. 41 and 42. The configuration of a thought routinethat uses an action score estimator will then be described withreference to FIGS. 43 and 44. After that, a method of estimating rewardsusing a predictor will be described with reference to FIGS. 45 to 47.

A method of applying the technology of an embodiment of the presentdisclosure to tic-tac-toe will be described with reference to FIGS. 48to 54. After that, a method of applying the technology of an embodimentof the present disclosure to a fighting game will be described withreference to FIGS. 55 to 62. A method of applying the technology of anembodiment of the present disclosure to a “connect five” game will thenbe described with reference to FIGS. 63 and 64. Next, a method ofapplying the technology of an embodiment of the present disclosure topoker will be described with reference to FIGS. 65 to 67. After that, amethod of applying the technology of an embodiment of the presentdisclosure to a role-playing game will be described with reference toFIGS. 68 to 79.

An example hardware configuration capable of realizing the functions ofthe information processing apparatus 10 according to an embodiment ofthe present disclosure will be described with reference to FIG. 80.Finally, the technical concept of an embodiment of the presentdisclosure will be summarized and the operational effects obtained bysuch technical concept will be described in brief.

INDEX 1. Fundamental Technology

1-1: Automated Construction Method for Estimator

-   -   1-1-1: Configuration of Estimator    -   1-1-2: Flow of Construction Process

1-2: Online Learning

1-3: Method of Integrating Learning Data

-   -   1-3-1: Distribution of Learning Data in Feature Amount Space and

Precision of Estimator

1-3-2 Sampling Configuration Used During Data Integration

1-3-3: Weighting Configuration Used During Data Integration

1-3-4: Sampling and Weighting Configuration Used During Data

Integration

1-4: Efficient Sampling/Weighting Methods

-   -   1-4-1: Sampling Method    -   1-4-2: Weighting Method    -   1-4-3: Combined Method

1-5: Modifications to Sampling Process and Weighting Process

-   -   1-5-1: Modification 1 (Processing Based on Distance)    -   1-5-2: Modification 2 (Processing Based on Clustering)    -   1-5-3: Modification 3 (Processing Based on Density Estimating        Method)

2: Embodiment

2-1: Automated Construction Method for Thought Routine

-   -   2-1-1: Thought Routine    -   2-1-2: Configuration of Thought Routine    -   2-1-3: Method of Constructing Reward Estimator

2-2: Configuration of Information Processing Apparatus 10

2-3: Method of Efficiently Constructing a Reward Estimator

2-4: Modification 1. Thought Routine Using Action Score Estimator

2-5: Modification 2. Estimation of Rewards using a Predictor

-   -   2-5-1: Method of Constructing a Predictor    -   2-5-2: Method of Estimating Rewards

2-6: Modification 3. Simultaneous Learning for a Plurality of Agents

3: Applications

3-1: Application to Tic-tac-toe

3-2: Application to Fighting Game

3-3: Application to “Connect Five” Game

3-4: Application to Poker

3-5 Application to Role-Playing Game

4: Example Hardware Configuration 5: Conclusion 1: FUNDAMENTALTECHNOLOGY

The embodiment described later relates to an automated constructionmethod for an estimator. Also, such embodiment relates to a framework(hereinafter, “online learning”) that makes it possible to add learningdata to be used in the construction of an estimator. For this reason, anautomated construction method for an estimator and an online learningmethod (hereinafter, “fundamental technology”) will be described beforethe technology according to the embodiment is described in detail. Notethat although the explanation will proceed below for an automatedconstruction method for an estimator based on a generic algorithm as oneexample, the technical scope of application of the embodiment of thepresent disclosure is not limited to such.

1-1: Automated Construction Method for Estimator

An automated construction method for an estimator will now be described.

1-1-1: Configuration of Estimator

First, the configuration of an estimator will be described withreference to FIGS. 1 to 3. FIG. 1 is a diagram useful in explaining anexample system configuration of a system that uses an estimator. FIG. 2is a diagram useful in explaining an example configuration of learningdata to be used in the construction of an estimator. FIG. 3 is a diagramuseful in showing the structure of an estimator and an overview of aconstructing method.

First, FIG. 1 will be described. As shown in FIG. 1, the constructing ofan estimator and the calculation of estimated values are carried out byan information processing apparatus 10, for example. The informationprocessing apparatus 10 constructs an estimator using learning data (X₁,t₁), (X_(N), t_(N)). The information processing apparatus 10 alsocalculates an estimated value y from input data X using the constructedestimator. The estimated value y is used in recognizing the input dataX. For example, a recognition result of “Yes” is obtained if theestimated value y is equal to or larger than a specified threshold Thand a recognition result of “No” is obtained if the estimated value y issmaller than the specified threshold Th.

Let us now consider the specific configuration of an estimator withreference to FIG. 2. The collection of learning data illustrated in FIG.2 is used to construct an image recognition device that recognizesimages of the sea. In this case, the estimator constructed by theinformation processing apparatus 10 outputs an estimated value yexpressing the likeness to the sea of the inputted image. As shown inFIG. 2, the learning data is composed of pairs of data X_(k) and atarget variable t_(k) (where k is 1 to N). The data X_(k) is the k^(th)image data (image#k). The target variable t_(k) is a variable that takesthe value “1” when the image#k is an image of the sea and takes thevalue “0” when the image#k is not an image of the sea.

In the example in FIG. 2, image#1 is an image of the sea, image#2 is animage of the sea, . . . and image#N is not an image of the sea. In thiscase, t₁=1, t₂=1, . . . , t_(N)=0. When this learning data is inputted,the information processing apparatus 10 constructs an estimator thatoutputs an estimated value y expressing the likeness to the sea of aninputted image according to machine learning based on the inputtedlearning data. The estimated value y approaches “1” the closer thelikeness to the sea of the inputted image and approaches “0” the weakerthe likeness to the sea.

When new input data X (an image X) is inputted, the informationprocessing apparatus 10 inputs the image X into the estimatorconstructed using the collection of learning data to calculate theestimated value y expressing the likeness to the sea of the input dataX. By using the estimated value y, it is possible to recognize whetherthe image X is an image of the sea. As one example, if the estimatedvalue y≧specified threshold Th, the inputted image X is recognized as animage of the sea. Meanwhile, if the estimated value y<specifiedthreshold Th, the inputted image X is recognized as not being an imageof the sea.

The present embodiment relates to a technology that automaticallyconstructs an estimator such as that described above. Note that althoughan estimator to be used in constructing an image recognition device isdescribed here, the technology according to the present embodiment canbe applied to an automated construction method for a variety ofestimators. As examples, it is possible to use the technology toconstruct a language analyzer and to use the technology to construct amusic analyzer that analyzes the melody line and/or chord progression ofa song. In addition, it is possible to use the technology to construct amotion prediction device that reproduces a natural phenomenon and/orpredicts natural behavior, such as movement of a butterfly or movementof clouds.

For example, it is possible to apply the technology to the algorithmsdisclosed in the specifications of Japanese Laid-Open Patent PublicationNos. 2009-48266, 2010-159598, 2010-159597, 2009-277083, 2009-277084, andthe like. The technology may also be applied to an ensemble learningmethod such as AdaBoost, or a learning method that uses a kernel such asSVM or SVR. When applied to an ensemble learning method such asAdaBoost, weak learners correspond to the basis functions φ describedlater. When the technology is applied to a learning method such as SVMor SVR, the kernel corresponds to the basis functions φ described later.Note that “SVM” is an abbreviation of “Support Vector Machine”, “SVR” isan abbreviation of “Support Vector Regression” and “RVM” is anabbreviation of “Relevance Vector Machine”.

The structure of an estimator will now be described with reference toFIG. 3. As shown in FIG. 3, the estimator is composed of a basisfunction list (φ₁, (φ_(M)) and an estimation function f. The basisfunction list (φ₁, . . . , φ_(M)) includes M basis functions φ_(k),(where k=1 to M). Each basis function φ_(k) is a function that outputs afeature amount z_(k) in response to the inputting of the input data X.In addition, the estimation function f is a function that outputs anestimated value y in response to the input of a feature amount vectorZ=(z_(i), . . . , z_(M)) including M feature amounts z_(k) (where k is 1to M) as elements. The basis functions φ_(k) are generated by combiningone or a plurality of processing functions provided in advance.

As the processing functions, as examples it is possible to use atrigonometric function, an exponential function, the four arithmeticoperations, a digital filter, a differential operation, a median filter,a normalization operation, processing that adds white noise, and animage processing filter. As one example, when the input data X is animage, a basis function φ_(j)(X)=AddWhiteNoise(Median(Blur(X))) that isa combination of a process “AddWhiteNoiseQ” that adds white noise, amedian filter “Median ( )”, and a blurring process “Blur( )” may beused. This basis function φ_(j) successively carries out a blurringprocess, a median filter process, and a process that adds white noise onthe input data X.

1-1-2: Flow of Construction Process

The configuration of the basis functions φ₁, (where k is 1 to M), theconfiguration of the basis function list, and the configuration of theestimation function f are decided through machine learning based onlearning data. The process for constructing an estimator through machinelearning will now be described in more detail.

Overall Configuration

First the overall flow of processing will now be described withreference to

FIG. 4. FIG. 4 is a diagram useful in explaining the overall flow ofprocessing. Note that the processing described below is executed by theinformation processing apparatus 10.

As shown in FIG. 4, first learning data is inputted into the informationprocessing apparatus 10 (S101). Note that a pair of data X and a targetvariable t is inputted as the learning data. When learning data has beeninputted, the information processing apparatus 10 generates basisfunctions by combining processing functions (S102). Next, theinformation processing apparatus 10 inputs the data X into the basisfunctions to calculate the feature amount vector Z (S103). After that,the information processing apparatus 10 carries out evaluation of thebasis functions and generation of the estimation function (S 104).

The information processing apparatus 10 then determines whether aspecified end condition is satisfied (S 105). If the specified endcondition is satisfied, the information processing apparatus 10 advancesto step S106. Meanwhile, if the specified end condition is notsatisfied, the information processing apparatus 10 returns to step S102and the processing in steps S102 to S104 is executed once again. If theprocessing has advanced to step S106, the information processingapparatus 10 outputs the estimation function (S106). As described above,the processing in steps S102 to S104 is repeatedly executed. For thisreason, in the processing described below, the basis functions generatedin step S102 in the τ^(th) iteration of the processing is referred to asτ^(th) generation basis functions.

Generation of Basis Functions (S102)

The processing (generation of basis functions) in step S102 will now bedescribed in more detail with reference to FIGS. 5 to 10.

FIG. 5 will be described first. As shown in FIG. 5, the informationprocessing apparatus 10 determines whether the present generation is thesecond or a later generation (S111). That is, the information processingapparatus 10 determines whether the processing in step S102 that iscurrently about to be executed is the second or later iteration of theprocessing. If the processing is the second or a later generation, theinformation processing apparatus 10 advances to step S113. Meanwhile ifthe processing is not for a second or later generation (i.e., theprocessing is for a first generation), the information processingapparatus 10 advances to step S112. If the processing has advanced tostep S112, the information processing apparatus 10 generates basisfunctions randomly (S112). Meanwhile, if the processing has advanced tostep S113, the information processing apparatus 10 evolutionarilygenerates basis functions (S113). After this, on completing theprocessing in step S112 or S113, the information processing apparatus 10ends the processing in step S102.

S112: Random Generation of Basis Functions

Next, the processing in step S112 will be described in more detail withreference to FIGS. 6 and 7. The processing in step S112 relates toprocessing that generates the first generation basis functions.

FIG. 6 will be described first. As shown in FIG. 6, the informationprocessing apparatus 10 starts a processing loop relating to an index m(where m=0 to M−1) for basis functions (S121). Next, the informationprocessing apparatus 10 randomly generates the basis function φ_(m)(x)(S122). Next, the information processing apparatus 10 determines whetherthe index m of the basis function has reached M−1, and if the index m ofthe basis function has not reached M−1, the information processingapparatus 10 increments the index m of the basis function and theprocessing returns to step S121 (S 124). Meanwhile, if the index m ofthe basis function is such that m=M−1, the information processingapparatus 10 ends the processing loop (S124). On ending the processingloop in step S124, the information processing apparatus 10 completes theprocessing in step S112.

Details of Step S122

Next, the processing in step S122 will be described in more detail withreference to FIG. 7.

When the processing in step S122 starts, as shown in FIG. 7, theinformation processing apparatus 10 randomly decides a prototype of thebasis function (S131). As the prototype, aside from the processingfunctions that have already been listed as examples, it is possible touse a processing function such as a linear term, a Gaussian kernel, or asigmoid kernel. Next, the information processing apparatus 10 randomlydecides the parameters of the decided prototype to generate a basisfunction (S132).

S113: Evolutionary Generation of Basis Functions

Next, the processing in step S113 will be described in more detail withreference to FIGS. 8 to 10. The processing in step S113 relates to aprocess that generates τ^(th) (where τ≧2) generation basis functions.Accordingly, when executing step S113, basis functions φ_(m,τ−1) (wherem=1 to M) of the (τ−1)^(th) generation and evaluation values v_(mτ−1) ofthe basis functions φ_(m,τ−1) are obtained.

FIG. 8 will be described first. As shown in FIG. 8, the informationprocessing apparatus 10 updates the number M of basis functions (S141).That is, the information processing apparatus 10 decides the numberM_(τ) of τ^(th) generation basis functions. Next, the informationprocessing apparatus 10 selects e useful basis functions out of the(τ−1)^(th) generation basis functions based on the evaluation valuesv_(τ−1)={v_(1,τ−1), . . . , v_(M,τ−1)} of the (τ−1)^(th) generationbasis functions (where m=1 to M) and sets the selected basis functionsas the τ^(th) generation basis functions φ_(1,τ), . . . , φ_(e,τ)(S142).

Next, the information processing apparatus 10 randomly selects themethod of generating the remaining (M_(τ)−e) basis functions φ_(e+1,τ),. . . , φ_(Mτ,τ) (S143) out of crossing, mutation, and randomgeneration. When crossing is selected, the information processingapparatus 10 advances to step S144. When mutation is selected, theinformation processing apparatus 10 advances to step S145. When randomgeneration is selected, the information processing apparatus 10 advancesto step S146.

When the processing has advanced to step S144, the informationprocessing apparatus 10 generates a new basis function φ_(m′,τ) (wherem′≧e+1) by crossing basis functions selected out of the basis functionsφ_(1,τ), . . . , φ_(e,τ) selected in step S142. When the processing hasadvanced to step S145, the information processing apparatus 10 generatesa new basis function φ_(m,′τ) (where m′≧e+1) by causing mutation of abasis function selected out of the basis functions φ_(1,τ), . . . ,φ_(e,τ) selected in step S142 (S145). Meanwhile, when the processing hasadvanced to step S146, the information processing apparatus 10 randomlygenerates a new basis function φm′,τ (where m′≧e+1) (S146).

When the processing in one of steps S144, S145, and S146 has ended, theinformation processing apparatus 10 advances to step S147. When theprocessing has advanced to step S147, the information processingapparatus 10 determines whether the number of τ^(th) generation basisfunctions has reached M (that is, M=M_(τ)) (S147). If the number ofτ^(th) generation basis functions has not reached M, the informationprocessing apparatus 10 returns once again to step S143. Meanwhile, ifthe number of τ^(th) generation basis functions has reached M, theinformation processing apparatus 10 ends the processing in step S113.

Details of S144: Crossing

Next, the processing in step S144 will be described in more detail withreference to FIG. 9.

Once the processing in step S144 starts, as shown in FIG. 9, theinformation processing apparatus 10 randomly selects two basis functionswith the same prototype out of the basis functions φ_(1,τ), . . . ,φ_(e,τ) selected in step S142 (S151). After this, the informationprocessing apparatus 10 crosses the parameters of the two selected basisfunctions to generate a new basis function (S 152).

Details of S145: Mutation

Next, the processing in step S145 will be described in more detail withreference to FIG. 10.

When the processing in step S145 starts, as shown in FIG. 10, theinformation processing apparatus 10 randomly selects one of the basisfunctions out of the basis functions φ_(1,τ), . . . , φ_(e,τ) selectedin step S142 (S161). After this, the information processing apparatus 10randomly changes some of the parameters of the selected basis functionto generate a new basis function (S 162).

Details of S146: Random Generation

Next, the processing in step S146 will be described in more detail withreference to FIG. 7.

When the processing in step S146 starts, as shown in FIG. 7, theinformation processing apparatus 10 randomly decides the prototype ofthe basis function (S 131). As the prototype, aside from the processingfunctions that have already been listed as examples, it is possible touse a processing function such as a linear term, a Gaussian kernel, or asigmoid kernel. Next, the information processing apparatus 10 randomlydecides the parameters of the decided prototype to generate a basisfunction (S132).

This completes the detailed description of the processing in step S102(that is, the generation of basis functions).

Calculation of Basis Functions (S103)

Next, the processing in step S103 (that is, the calculation of the basisfunctions) will be described in more detail with reference to FIG. 11.

As shown in FIG. 11, the information processing apparatus 10 starts aprocessing loop relating to the index i of the i^(th) data X^((i))included in the learning data. For example, a processing loop for i=1 toN is executed for a case where N data sets {X⁽¹⁾, . . . , X^((N))} havebeen inputted as the learning data. After this, the informationprocessing apparatus 10 starts the processing loop for the index m ofthe basis function φ_(n), (S172). For example, if M basis functions havebeen generated, the processing loop is executed for m=1 to M.

After this, the information processing apparatus 10 calculates thefeature amount z_(mi)=φ_(m)(x^((i))) (S173). Next, the informationprocessing apparatus 10 advances to step S174 and the processing loopcontinues for the index m of the basis functions. On ending theprocessing loop relating to the index m of the basis functions, theinformation processing apparatus 10 then advances to step S175 andcontinues the processing loop relating to the index i. When theprocessing loop relating to the index i has ended, the informationprocessing apparatus 10 ends the processing in step S103.

This completes the detailed description of the processing in step S103(that is, the calculation of basis functions).

Evaluation of Basis Functions, Generation of Estimation Function (S104)

Next, the processing in step S104 (that is, the evaluation of basisfunctions and generation of an estimation function) will be described inmore detail with reference to FIG. 12.

As shown in FIG. 12, the information processing apparatus 10 calculatesparameters w={w₀, . . . , w_(M)} of the estimation function according toregressive/discriminative learning based on forward and backwardregression for AIC criteria (S181). That is, the information processingapparatus 10 finds a vector w={w₀, . . . , w_(M)} according toregressive/discriminative learning so that pairs of a feature amountz_(mi)=φ_(m,τ)(x^((i))) and a target variable t^((i)) (where i=1 to N)fit the estimation function f. Here, the estimation function f(x) isassumed to be such that f(x)=Σw_(m)φ_(m,τ)(x)+w₀. Next, the informationprocessing apparatus 10 sets the evaluation value v of a basis functionat 0 when the parameter w is 0 and sets the evaluation value v of otherbasis functions at 1 (S182). That is, a basis function where theevaluation value v is 1 is a useful basis function.

This completes the detailed description of the processing in step S104(that is, the evaluation of basis functions and generation of anestimation function).

The flow of processing relating to the construction of an estimator isas described above. In this way, the processing in steps S102 to S104 isrepeatedly executed and an estimation function with high estimationprecision is obtained by successively updating the basis functionsaccording to an evolutionary method. That is, by using the methoddescribed above, it is possible to automatically construct ahigh-performance estimator.

1-2: Online Learning

As described above, with an algorithm that automatically constructs anestimator according to machine learning, the larger the number oflearning data, the higher the performance of the constructed estimator.This means that it is preferable to construct an estimator using thegreatest possible number of learning data. With the technology describedin the following embodiment, a framework for increasing the learningdata is used. For this reason, a new framework (hereinafter referred toas “online learning”) that makes it possible to increase the learningdata is introduced below.

Constructing an estimator relating to online learning is carried outaccording to the flow of processing shown in FIG. 13. As shown in FIG.13, first, a collection of learning data is inputted into theinformation processing apparatus 10 (Step 1). Next, the informationprocessing apparatus 10 uses the inputted collection of learning data toconstruct an estimator according to the automated construction methodfor an estimator described earlier (Step 2).

After this, the information processing apparatus 10 acquires theadditional learning data at arbitrary or at specified timing (Step 3).Next, the information processing apparatus 10 integrates the learningdata acquired in Step 3 into the collection of learning data inputted inStep 1 (Step 4). When doing so, the information processing apparatus 10executes a sampling process and/or a weighting process on the learningdata to generate the collection of learning data after integration. Theinformation processing apparatus 10 then reconstructs the estimatorusing the collection of learning data after integration (Step 2). Whendoing so, the information processing apparatus 10 constructs theestimator according to the automated construction method for anestimator described earlier.

The processing in Step 2 to Step 4 is repeatedly executed. Here, thelearning data is updated every time the processing is repeated. As oneexample, since the number of learning data used in the constructionprocess for the estimator will increase if learning data is added inevery iteration, the performance of the estimator will improve. Notethat in the integration process for the learning data executed in Step4, the method of integration is subjected to various modifications tomake more effective use of the resources of the information processingapparatus 10 and have more useful learning data used in the constructionof an estimator. Such modifications are introduced below.

1-3: Method of Integrating Learning Data

The method of integrating the learning data will now be described inmore detail.

1-3-1: Distribution of Learning Data in Feature Amount Space andPrecision of Estimator

First, the relationship between the distribution of the learning data ina feature amount space and the precision of the estimator will bediscussed with reference to FIG. 14. FIG. 14 is a diagram useful inexplaining an example distribution of the learning data in a featureamount space.

One feature amount vector is obtained by inputting data that composesone set of learning data into each basis function included in the basisfunction list. That is, one set of learning data corresponds to onefeature amount vector (feature amount coordinates). For this reason, thedistribution of feature amount coordinates is referred to as the“distribution of learning data” in a feature amount space. Thedistribution of learning data in the feature amount space is as shown inFIG. 14, for example. Note that although a two-dimensional featureamount space is considered in the example in FIG. 14 for ease ofexpression, the number of dimensions in the feature amount space is notlimited to this.

In the distribution of feature amount coordinates illustrated in FIG.14, it should be clear that a sparse region is present in the fourthquadrant. As described earlier, the estimation function is generated byregressive/discriminative learning so that the relationship betweenfeature amount vectors and target variables is accurately expressed forall of the learning data. For this reason, in a region where the featureamount coordinates have a low density, there is a high probability thatthe estimation function will not accurately express the relationshipbetween feature amount vectors and target variables. Accordingly, iffeature amount coordinates corresponding to input data that are to besubjected to a recognition process are positioned in the sparse regiondescribed above, it is unrealistic to expect a highly preciserecognition result.

As shown in FIG. 15, the larger the number of learning data sets, theharder it is for a sparse region to be produced, which increases thelikelihood that an estimator capable of outputting a highly preciserecognition result regardless of the region corresponding to theinputted input data will be constructed. Also, even if the number oflearning data sets is comparatively low, so long as the feature amountcoordinates are evenly distributed across the feature amount space, itis likely that an estimator capable of outputting a highly preciserecognition result can be constructed.

For this reason, the present inventors devised an adjustment frameworkthat takes the distribution of feature amount coordinates intoconsideration when integrating the learning data so as to produce aspecified distribution (such as a uniform distribution or a Gaussiandistribution) for the distribution of feature amount coordinatescorresponding to the collection of learning data after integration.

1-3-2 Sampling Configuration Used During Data Integration

First, the method of sampling the learning data will be described withreference to FIG. 16. FIG. 16 is a diagram useful in explaining themethod of sampling the learning data.

As described earlier, since it is possible to successively add learningdata when online learning is used, it is possible to construct anestimator using a large amount of learning data. However, since theinformation processing apparatus 10 has limited memory resources, whenintegrating the learning data, it is necessary to reduce the number oflearning data used to construct an estimator. When doing so, instead ofsimply reducing (i.e., sampling) the learning data randomly, by samplingthe learning data with consideration to the distribution of featureamount coordinates, it is possible to reduce the number of learning datawithout lowering the precision of the estimator. As one example, asshown in FIG. 16, sampling is carried out so as to heavily reduce thenumber of feature amount coordinates included in a dense region and toretain feature amount coordinates included in a sparse region.

By sampling the learning data according to this method, the density ofthe feature amount coordinates corresponding to the collection oflearning data after integration becomes uniform. That is, although theoverall number of learning data is reduced, since the feature amountcoordinates are uniformly distributed across the entire feature amountspace, it is possible to take the entire feature amount space intoconsideration during the regressive/discriminative learning carried outwhen generating the estimation function. As a result, even if the memoryresources of the information processing apparatus 10 are limited, itwill still be possible to construct a highly precise estimator capableof estimating accurate recognition results.

1-3-3: Weighting Configuration Used During Data Integration

Next, the method of setting weightings for learning data will bedescribed.

When the memory resources of the information processing apparatus 10 arelimited, it is effective to sample the learning data during theintegration of learning data. Meanwhile, if sufficient memory resourcesare available, it is possible to improve the performance of theestimator by setting weightings for the learning data instead ofsampling the learning data. As one example, a large weighting is set forlearning data whose feature amount coordinates are included in a sparseregion and a small weighting is set for learning data whose featureamount coordinates are included in a dense region. Such weightings thathave been set for the learning data are then taken into considerationduring the regressive/discriminative learning carried out whengenerating the estimation function.

1-3-4: Sampling and Weighting Configuration Used During Data Integration

It is also possible to combine the method of sampling learning data andthe method of setting weightings for the learning data. For example,after the learning data has been sampled to set the distribution offeature amount coordinates at a specified distribution, weightings areset in keeping with the density of the feature amount coordinates forthe learning data belonging to the collection of learning data retainedafter sampling. By combining the sampling process and the weightingprocess in this way, it is possible to construct a more preciseestimator even when memory resources are limited.

1-4: Efficient Sampling/Weighting Methods

Next, methods of efficiently sampling and weighting the learning datawill be described.

1-4-1: Sampling Method

First, a method of efficiently sampling the learning data will bedescribed with reference to FIG. 17. FIG. 17 is a diagram useful inexplaining a method of efficiently sampling the learning data.

As shown in FIG. 17, the information processing apparatus 10 calculatesthe feature amount vectors (feature amount coordinates) for all of thelearning data (S201). Next, the information processing apparatus 10normalizes the calculated feature amount coordinates (S202). As oneexample, as shown in FIG. 18, the information processing apparatus 10normalizes the values of the respective feature amounts so that thedispersion is 1 and the mean is 0.

Next, the information processing apparatus 10 randomly generates a hashfunction g (S203). As one example, the information processing apparatus10 generates a plurality of hash functions g that output five-bit valuesas shown by Equation (1) given below. At this time, the informationprocessing apparatus 10 generates Q hash functions g_(q) (where q=1 toQ). The functions h_(j) (where j=1 to 5) are defined by Equation (2)given below. Here, “d” and “Threshold” are decided by random numbers.

If the distribution of the feature amount coordinates is close to auniform distribution, a uniform random number is used as the randomnumber used to decide “Threshold”. Similarly, if the distribution of thefeature amount coordinates is close to a Gaussian distribution, aGaussian random number is used as the random number used to decide“Threshold”. This also applies to other distributions. In the same way,d is decided using a random number that is biased in keeping with acontribution ratio of the basis function used to calculate z_(d). Forexample, a random number such that the larger the contribution ratio ofthe basis function used to calculate z_(d), the higher the probabilityof generating d is used.

$\begin{matrix}{{{Math}.\mspace{14mu} 1}\mspace{661mu}} & \; \\{{g(Z)} = \left\{ {{h_{1}(Z)},{h_{2}(Z)},{h_{3}(Z)},{h_{4}(Z)},{h_{5}(Z)}} \right\}} & (1) \\{{h_{j}(Z)} = \left\{ \begin{matrix}1 & \left( {z_{d} > {Threshold}} \right) \\0 & \left( {z_{d} \leq {Threshold}} \right)\end{matrix} \right.} & (2)\end{matrix}$

On generating the hash function g_(q) (where q=1 to Q), the informationprocessing apparatus 10 inputs the feature amount vector Z correspondingto each learning data into the hash function g_(q) to calculate hashvalues. The information processing apparatus 10 then assigns thelearning data to packets based on the calculated hash values (S204). Theexpression “packet” used here refers to a region with which values thatcan be taken by a hash value are associated.

For example, let us consider a case where hash values are five-bit and Qis 256. In this case, the configuration of the packets is as shown inFIG. 19. As shown in FIG. 19, since the hash values are five-bit,thirty-two packets (hereinafter referred to as a “packet set”) areprovided for one hash value g_(q). Also, since Q=256, 256 packet setsare provided. The method of assigning the learning data to packets willnow be described for this example.

When the feature amount vector Z corresponding to a certain set oflearning data is given, 256 hash values are calculated using 256 hashfunctions g₁ to g₂₅₆. As one example, if g₁(Z)=2 (expressed in base 10),the information processing apparatus 10 assigns such learning data to“2” in the packet set corresponding to g₁. In the same way, g_(q)(Z)(where q=2 to 256) are calculated and the learning data is assigned topackets corresponding to the respective values. In the example in FIG.19, two types of learning data are expressed by white circles and blackcircles and the correspondence with the respective packets isschematically shown.

After assigning the respective learning data to packets in this way, theinformation processing apparatus 10 selects one learning data from thepackets in a specified order (S205). For example, as shown in FIG. 20,the information processing apparatus 10 scans the packets in order fromthe top left (where the index q of the hash function is low and thevalue assigned to the packet is low) and selects one set of learningdata assigned to a packet.

Rules for selecting learning data from a packet are shown in FIG. 21.First, the information processing apparatus 10 skips empty packets.Secondly, after selecting one set of learning data, the informationprocessing apparatus 10 removes such learning data from all otherpackets. Thirdly, the information processing apparatus 10 randomlyselects one set of learning data when a plurality of learning data havebeen assigned to a single packet. Note that information on the selectedlearning data is stored by the information processing apparatus 10.

After one set of learning data has been selected, the informationprocessing apparatus 10 determines whether a specified number oflearning data have been selected (S206). If a specified number oflearning data have been selected, the information processing apparatus10 outputs the selected specified number of learning data as thecollection of learning data after integration and ends the series ofprocesses relating to the integration of learning data. Meanwhile, ifthe specified number of learning data have not been selected, theinformation processing apparatus 10 returns to step S205.

This completes the description of an efficient method of sampling thelearning data. Note that the correspondence between the feature amountspace and the packets described above is depicted by the image shown inFIG. 22. The result of carrying out the sampling of learning dataaccording to the method described above is as shown for example in FIG.23 (an example of a uniform distribution). As shown in FIG. 23, featureamount coordinates included in a sparse region are kept and featureamount coordinates included in a dense region are sampled (i.e., thinnedout). Note that if the packets described above are not used, there is alarge increase in the computation load that may be required to samplethe learning data.

1-4-2: Weighting Method

Next, an efficient method of weighting the learning data will bedescribed with reference to FIG. 24. FIG. 24 is a diagram useful inexplaining an efficient method of weighting the learning data.

As shown in FIG. 24, the information processing apparatus 10 calculatesfeature amount vectors (feature amount coordinates) for all of thelearning data (S211). After this, the information processing apparatus10 normalizes the calculated feature amount coordinates (S212). Forexample, as shown in FIG. 24, the information processing apparatus 10normalizes the values of the feature amounts so that the dispersion is 1and the mean is 0.

Next, the information processing apparatus 10 randomly generates a hashfunction g (S213). As one example, the information processing apparatus10 generates a plurality of hash functions g that output five-bit valuesas shown by Equation (1) given above. When doing so, the informationprocessing apparatus 10 generates Q hash functions g_(q) (where q=1 toQ). The functions h_(j) (where j=1 to 5) are defined by Equation (2)given above. Here, “d” and “Threshold” are decided by random numbers.

If the distribution of the feature amount coordinates is close to auniform distribution, a uniform random number is used as the randomnumber used to decide “Threshold”. Similarly, if the distribution of thefeature amount coordinates is close to a Gaussian distribution, aGaussian random number is used as the random number used to decide“Threshold”. This also applies to other distributions. In the same way,d is decided using a random number that is biased in keeping with thecontribution ratio of the basis function used to calculate zd. Forexample, a random number such that the larger the contribution ratio ofthe basis function used to calculate z_(d), the higher the probabilityof generating d is used.

On generating the hash function g_(q) (where q=1 to Q), the informationprocessing apparatus 10 inputs the feature amount vector Z correspondingto each learning data into the hash function g_(q) to calculate hashvalues. The information processing apparatus 10 then assigns thelearning data to a packet based on the calculated hash values (S214).After this, the information processing apparatus 10 calculates thedensity for the respective learning data (S215). As one example, assumethat the learning data sets have been assigned to the packets as shownin FIG. 25. Focus here on the learning data depicted using whitecircles.

In this case, for the packet sets corresponding to the respective hashfunctions, the information processing apparatus 10 first counts thenumber of learning data assigned to packets including white circles. Asone example, for the packet set corresponding to the hash function g₁,the number of learning data assigned to the packet including a whitecircle is 1. In the same way, for the packet set corresponding to thehash function g₂, the number of learning data assigned to the packetincluding a white circle is 2. The information processing apparatus 10counts the number of learning data assigned to the packets includingwhite circles for the packet sets corresponding to the hash functions g₁to g₂₅₆.

After this, the information processing apparatus 10 calculates a meanvalue of the counted number of learning data and regards the calculatedmean value as the density of the learning data corresponding to whitecircles. The information processing apparatus 10 calculates thedensities of all of the learning data in the same way. Note that thedensities of the learning data are expressed as shown in FIG. 26B. InFIG. 26B, dark-colored parts indicate a high density and light-coloredparts indicate a low density

On completing the calculation of density for all of the learning data,the information processing apparatus 10 advances to step S217 (S216).When the processing has advanced to step S217, the informationprocessing apparatus 10 calculates weightings set for each learning datafrom the calculated densities (S217). For example, the informationprocessing apparatus 10 sets a reciprocal of the density as theweighting. The distribution of the weightings set for the learning datais depicted in FIG. 27B. In FIG. 27B, dark-colored parts indicate alarge weighting and light-colored parts indicate a small weighting. Asshould be clear from FIGS. 27A and 27B, dense regions have a smallweighting and sparse regions have a large weighting.

When the calculation of weightings set for the learning data has beencompleted as described above, the information processing apparatus 10ends the series of processes relating to weighting. This completes thedescription of an efficient method of weighting the learning data. Notethat if the packets described above are not used, there is a largeincrease in the computation load that may be required to weight thelearning data.

1-4-3: Combined Method

Next, a method where the efficient method of sampling and the efficientmethod of weighting described above are combined will be described withreference to FIG. 28. FIG. 28 is a diagram useful in explaining themethod of combining the efficient method of sampling and the efficientmethod of weighting described above.

As shown in FIG. 28, the information processing apparatus 10 firstexecutes a sampling process for the learning data (S221). This samplingprocess is carried out in keeping with the flow of processing shown inFIG. 17. When a specified number of learning data have been obtained,the information processing apparatus 10 executes a weighting process forthe obtained learning data (S222). The weighting process is carried outin keeping with the flow of processing shown in FIG. 24. Note that thefeature amount vectors and hash functions calculated during the samplingprocess may be used again here. On completing the sampling process andthe weighting process, the information processing apparatus 10 ends theseries of processes.

This completes the description of the efficient method ofsampling/weighting the learning data.

1-5: Modifications to Sampling Process and Weighting Process

Next, modifications to the sampling process and the weighting processwill be introduced.

1-5-1: Modification 1 (Processing Based on Distance)

First, a method of sampling the learning data based on the distancesbetween feature amount coordinates will be described with reference toFIG. 29. FIG. 29 is a diagram useful in explaining a method of samplinglearning data based on the distances between feature amount coordinates.

As shown in FIG. 29, the information processing apparatus 10 firstrandomly selects one set of feature amount coordinates (S231). Next, theinformation processing apparatus 10 initializes the index j (S232). Theinformation processing apparatus 10 then sets the j^(th) feature amountcoordinates out of the J feature amount coordinates that are yet to beselected as focus coordinates (S233).

After this, the information processing apparatus 10 calculates distancesD between the focus coordinates and all of the feature amountcoordinates that have already been selected (S234). Next, theinformation processing apparatus 10 extracts a minimum value D_(min) outof the calculated distances D (S235).

After this, the information processing apparatus 10 determines whetherj=J (S236). If j=J, the information processing apparatus 10 advances tostep S237. Meanwhile, if kJ, the information processing apparatus 10advances to step S233. If the processing has advanced to step S237, theinformation processing apparatus 10 selects the focus coordinates(feature amount coordinates) with the largest minimum value D_(min)(S237). Next, the information processing apparatus 10 determines whetherthe number of feature amount coordinates selected in steps S231 and S237has reached a specified number (S238).

If the number of feature amount coordinates selected in steps S231 andS237 has reached the specified number, the information processingapparatus 10 outputs the learning data corresponding to the selectedfeature amount coordinates as the collection of learning data afterintegration and ends the series of processes. Meanwhile, if the numberof feature amount coordinates selected in steps S231 and S237 has notreached the specified number, the information processing apparatus 10advances to step S232.

This completes the method of sampling the learning data based on thedistance between the feature amount coordinates.

1-5-2: Modification 2 (Processing Based on Clustering)

Next, a method of sampling/weighting the learning data based onclustering will be described. Note that although the sampling method andweighting method are described separately below, such methods may becombined.

Selection of Data Sets

First, a method of sampling learning data based on clustering will bedescribed with reference to FIG. 30. FIG. 30 is a diagram useful inexplaining a method of sampling the learning data based on clustering.

As shown in FIG. 30, first the information processing apparatus 10classifies the feature amount vectors into a specified number ofclusters (S241). As examples of the clustering method, it is possible touse k-means or hierarchical clustering. After this, the informationprocessing apparatus 10 selects one feature amount vector from eachcluster in order (S242). The information processing apparatus 10 thenoutputs the learning data corresponding to the selected feature amountvectors as the collection of learning data after integration and endsthe series of processes.

Setting of Weightings

Next, the method of weighting the learning data based on clustering willbe described with reference to FIG. 31. FIG. 31 is a diagram useful inexplaining a method of weighting the learning data based on clustering.

As shown in FIG. 31, the information processing apparatus 10 firstclassifies the feature amount vectors into a specified number ofclusters (S251). As examples of the clustering method, it is possible touse k-means or hierarchical clustering. After this, the informationprocessing apparatus 10 counts the number of elements in each clusterand calculates the reciprocals of the number of elements (S252). Theinformation processing apparatus 10 then outputs the calculatedreciprocals of the number of elements as the weightings and ends theseries of processes.

This completes the description of the method of sampling/weighting thelearning data based on clustering.

1-5-3: Modification 3 (Processing Based on Density Estimating Method)

Next, a method of sampling/weighting the learning data based on adensity estimating method will be described. Note that although thesampling method and weighting method are described separately below,such methods may be combined.

Selection of Data Sets

First, a method of sampling learning data based on a density estimatingmethod will be described with reference to FIG. 32. FIG. 32 is a diagramuseful in explaining a method of sampling the learning data based on adensity estimating method.

As shown in FIG. 32, the information processing apparatus 10 firstmodels the density of the feature amount coordinates (S261). To modelthe density, as one example a density estimating method such as GMM(Gaussian Mixture Model) is used. Next, the information processingapparatus 10 calculates the density of the respective feature amountcoordinates based on the constructed model (S262). After this, theinformation processing apparatus 10 randomly selects, out of the featureamount coordinates that are yet to be selected, the feature amountcoordinates with a probability that is proportional to the reciprocal ofthe density (S263).

Next, the information processing apparatus 10 determines whether aspecified number of feature amount coordinates have been selected(S264). If a specified number of feature amount coordinates have notbeen selected, the information processing apparatus 10 returns to stepS263. Meanwhile, if a specified number of feature amount coordinateshave been selected, the information processing apparatus 10 then outputsthe learning data corresponding to the selected feature amountcoordinates as the collection of learning data after integration andends the series of processes.

Setting of Weightings

Next, the method of weighting the learning data based on a densityestimating method will be described with reference to FIG. 33. FIG. 33is a diagram useful in explaining a method of weighting the learningdata based on a density estimating method.

As shown in FIG. 33, the information processing apparatus 10 firstmodels the density of the feature amount coordinates (S271). To modelthe density, as one example a density estimating method such as GMM(Gaussian Mixture Model) is used. Next, the information processingapparatus 10 calculates the density of the feature amount coordinatesbased on the constructed model (S272). After this, the informationprocessing apparatus 10 sets the reciprocals of the calculated densitiesas the weightings and ends the series of processes.

This completes the description of the method of sampling/weighting thelearning data based on a density estimating method.

This completes the description of the fundamental technology that can beused in the embodiment described below. However, the technology of theembodiment described below does not need to use all of the fundamentaltechnology described above and may use a modification of the fundamentaltechnology or may use the fundamental technology in combination withanother machine learning algorithm.

2: EMBODIMENT

An embodiment of the present disclosure will now be described.

2-1: Automated Construction Method for Thought Routine

The present embodiment relates to a technology that automaticallyconstructs a thought routine of an agent such as a robot and/or athought routine of an NPC (Non-Player Character) who appears in avariety of games. For example, the present disclosure relates to atechnology that automatically constructs a thought routine that decidesthe next action a to be taken by an NPC in a certain state S. In thepresent specification, a program that outputs an action a in response tothe input of a state S is referred to as a “thought routine”. Thefollowing description is for an example of a thought routine thatdecides the action a of an NPC. It should be obvious that it is alsopossible to automatically construct a thought routine that decides theaction of a robot or the like in the same way.

2-1-1: Thought Routine

As described above, as shown in FIG. 34, the expression “thoughtroutine” in this specification is a program that outputs an action a inresponse to input of a state S. Note that the expression “state S”refers to an environment in which the NPC whose action a is to bedecided is located at a given moment. As one example, as shown in FIG.34, consider a fight game where two NPCs (NPC#1 and #2) fight eachother. This fighting game is configured so that NPC#1 and NPC#2 eachhave hit points and such hit points decrease when the character receivesdamage. In this example, the state S at a given moment is the hit pointsand the positional relationship between NPC#1 and NPC#2.

If this state S is inputted, the thought routine decides an action a ofNPC#1 where it can be expected that NPC#1 will damage NPC#2 and finallyreduce the hit points of NPC#2 to 0. As one example, if NPC#1 hassufficient hit points remaining but NPC#2 has very few hit points, thethought routine may decide an action a where NPC#1 may receive a certainamount of damage but rapidly causes damage to NPC#2. Also, if NPC#1 hasfew remaining hit points but NPC#2 has sufficient hit points, thethought routine may decide an action a where NPC#1 does not receivedamage but causes some damage to NPC#2.

Thought routines that decide the action of an NPC have been designed inthe past by extensive work by skilled technicians. It should be obviousthat thought routines that randomly decide the action of an NPC may alsoexist. However, to construct a thought routine capable of realizingintelligent NPC behavior, it is necessary to analyze user operations andresearch optimal behavior in keeping with the environment. In addition,based on the results of such analysis and research, it is necessary todesign conditions for deciding an optimal action of an NPC in keepingwith the environment. This means that a lot of time and a great deal ofeffort have been necessary to construct a thought routine. In view ofsuch situation, the present inventors developed an automatedconstruction technique for a thought routine that does not rely onmanual work.

2-1-2: Configuration of Thought Routine

As shown in FIG. 35, a thought routine according to the presentembodiment is generated by an automated construction technique forthought routines that is based on action history data. The actionhistory data is composed of a state S, an action a, and a reward r. Asone example, assume that if, in a state S=S₁, NPC#1 takes the actiona=“move to right”, damage is received from NPC#2 and the hit points fallto 0. In this case, the action history data is state S=S₁, actiona=“move to right”, and reward r=“0”. Action history data configured inthis way is stored in advance and it is possible to automaticallyconstruct a thought routine through machine learning that uses thisaction history data as learning data.

The thought routine according to the present embodiment has theconfiguration shown in FIG. 36. As shown in FIG. 36, the thought routinelists up actions a that can be taken by an NPC in response to input of astate S and calculates estimation values for the reward r (hereinafter“estimated rewards y”) that may be obtained by the NPC for each actiona. The thought routine then selects the action a where the estimatedreward y is the highest. Note that the estimated rewards y arecalculated using a reward estimator. Such reward estimator is analgorithm that outputs the estimated reward y in response to input ofthe state S and the action a. The reward estimator is automaticallyconstructed through machine learning that uses the action history dataas learning data. As one example, by applying the automated constructionmethod for an estimator introduced earlier, it is possible toautomatically construct the reward estimator.

As shown in FIG. 37, the reward estimator is composed of a basisfunction list (φ₁, . . . , φ_(M)) and the estimation function f. Thebasis function list (φ₁, . . . , φ_(M)) includes M basis functions φ_(k)(where k=1 to M). Each basis function φ_(k) is a function that outputs afeature amount z_(k) in response to the input of the input data X (thestate S and the action a). In addition, the estimation function f is afunction that outputs the estimated reward y in response to the featureamount vector Z=(z₁, . . . , z_(M)) including the M feature amountsz_(k) (where k=1 to M) as elements. Each basis function φ_(k) isgenerated by combining one or a plurality of processing functionsprovided in advance. As the processing functions, as examples it ispossible to use a trigonometric function, an exponential function, thefour arithmetic operations, a digital filter, a differential operation,a median filter, a normalization operation, or the like.

The automated construction technique for a thought routine according tothe present embodiment uses a thought routine that has beenautomatically constructed to cause an NPC to take an action and thenupdates such thought routine using action history data to which theaction history data newly obtained as a result of such action has beenadded. Such action history data can be added using the techniquerelating to online learning introduced earlier.

2-1-3: Method of Constructing a Reward Estimator

As one example, the constructing and updating of a reward estimatorusing the technique relating to online learning are carried outaccording to the flow of processing shown in FIG. 38. Note that it isassumed that such processing is carried out by the informationprocessing apparatus 10. As shown in FIG. 38, first the action historydata is inputted into the information processing apparatus 10 (Step 1).

In Step 1, the information processing apparatus 10 uses a simple thoughtroutine designed in advance to decide an action a, controls the behaviorof the NPC in the environment, and thereby obtains the action historydata (S, a, r). In the field of reinforcement learning, such simplethought routine is referred to as “Innate” (corresponding to instinctivebehavior performed by a baby). Such Innate may select an action atrandom from actions that can be taken by an NPC. In such case, it isunnecessary to design Innate. The information processing apparatus 10repeatedly has an action carried out by an NPC based on Innate until aspecified number of sets of action history data are obtained. Afterthis, the information processing apparatus 10 uses the inputted actionhistory data to construct a reward estimator in the same way as theautomated construction method for an estimator described earlier (Step2).

Next, the information processing apparatus 10 acquires additional actionhistory data at arbitrary or at specified timing (Step 3). Theinformation processing apparatus 10 then integrates the action historydata acquired in Step 3 into the action history data inputted in Step 1(Step 4). When doing so, the information processing apparatus 10executes a sampling process and/or a weighting process for the actionhistory data to generate the action history data after integration. Theinformation processing apparatus 10 then reconstructs the rewardestimator using the action history data after integration (Step 2). Theprocessing in Step 2 to Step 4 is repeatedly executed. The actionhistory data is updated every time the processing is repeated.

This completes a brief description of the automated construction methodfor a thought routine. Here, although an automated construction methodfor a thought routine that decides the action of an NPC has beendescribed, it is also possible to automatically construct various typesof thought routines in the same way by changing the configuration of theaction history data. That is, by applying the technology according tothe present embodiment, it is possible to construct a variety of thoughtroutines with a unified framework. Also, since a thought routine isautomatically constructed, the construction of a thought routine doesnot take up someone's time, resulting in a large reduction in effort.

2-2: Configuration of Information Processing Apparatus 10

Here, the fundamental configuration of the information processingapparatus 10 according to the present embodiment will be described withreference to FIGS. 39 and 40. FIG. 39 is a diagram useful in showing theoverall functional configuration of the information processing apparatus10 according to the present embodiment. FIG. 40 is a diagram useful inshowing the detailed functional configuration of a reward estimatorconstructing unit 12 that constructs the information processingapparatus 10 according to the present embodiment.

Overall Functional Configuration

First, the overall functional configuration will be described withreference to FIG. 39. As shown in FIG. 39, the information processingapparatus 10 mainly includes an action history data acquiring unit 11,the reward estimator constructing unit 12, an input data acquiring unit13, and an action selecting unit 14.

When the construction process for a thought routine starts, the actionhistory data acquiring unit 11 acquires the action history data to beused when constructing the reward estimator. As one example, the actionhistory data acquiring unit 11 repeatedly causes an NPC to carry out anaction based on a simple thought routine (Innate) to acquire a specifiednumber of action history data. However, the action history dataacquiring unit 11 may also read action history data stored in advance ina storage apparatus (not shown) or acquire action history data via anetwork from a system or the like that provides the action history data.

The action history data acquired by the action history data acquiringunit 11 is inputted into the reward estimator constructing unit 12. Whenthe action history data is inputted, the reward estimator constructingunit 12 constructs a reward estimator through machine learning based onthe inputted action history data. As one example, the reward estimatorconstructing unit 12 uses the automated construction method for anestimator based on a genetic algorithm described earlier to construct areward estimator. Also, if additional action history data has beeninputted from the action history data acquiring unit 11, the rewardestimator constructing unit 12 integrates the action history data andconstructs the reward estimator using the action history data afterintegration.

The reward estimator constructed by the reward estimator constructingunit 12 is inputted into the action selecting unit 14. The rewardestimator is used to select an optimal action for arbitrary input data(the state S). When input data (the state S) has been acquired by theinput data acquiring unit 13, the acquired input data is inputted intothe action selecting unit 14. When the input data has been inputted, theaction selecting unit 14 inputs the state S shown by the inputted inputdata and actions a that can be taken by the NPC in the state S into thereward estimator and selects an action a based on the estimated rewardsy outputted from the reward estimator. As one example, as shown in FIG.36, the action selecting unit 14 selects the action a where theestimated reward y is the highest.

This completes the description of the overall functional configurationof the information processing apparatus 10.

Functional Configuration of the Reward Estimator Constructing Unit 12

Next, the functional configuration of the reward estimator constructingunit 12 will be described in detail with reference to FIG. 40. As shownin FIG. 40, the reward estimator constructing unit 12 includes a basisfunction list generating unit 121, a feature amount calculating unit122, an estimation function generating unit 123, and an action historydata integrating unit 124.

When the thought routine construction process starts, first the basisfunction list generating unit 121 generates a basis function list. Afterthis, the basis function list generated by the basis function listgenerating unit 121 is inputted into the feature amount calculating unit122. Action history data is also inputted into the feature amountcalculating unit 122. When the basis function list and the actionhistory data have been inputted, the feature amount calculating unit 122inputs the inputted action history data into the respective basisfunctions included in the basis function list to calculate featureamounts. Set of feature amounts (i.e., feature amount vectors)calculated by the feature amount calculating unit 122 are inputted intothe estimation function generating unit 123.

When the feature amount vectors have been inputted, the estimationfunction generating unit 123 generates the estimation function byregressive/discriminative learning based on the inputted feature amountvectors and the reward values r that compose the action history data.Note that if a method of constructing an estimator based on a geneticalgorithm is used, the estimation function generating unit 123calculates a contribution ratio (evaluation value) of each basisfunction for the generated estimation function and determines, based onsuch contribution ratios, whether an end condition is satisfied. If theend condition is satisfied, the estimation function generating unit 123outputs a reward estimator including the basis function list and theestimation function.

Meanwhile if the end condition is not satisfied, the estimation functiongenerating unit 123 notifies the basis function list generating unit 121of the contribution ratios of the respective basis functions for thegenerated estimation function. The basis function list generating unit121 that has received such notification updates the basis function listaccording to the genetic algorithm based on the contribution ratios ofthe respective basis functions. When the basis function list has beenupdated, the basis function list generating unit 121 inputs the updatedbasis function list into the feature amount calculating unit 122. If anupdated basis function list has been inputted, the feature amountcalculating unit 122 calculates the feature amount vectors using theupdated basis function list. The feature amount vectors calculated bythe feature amount calculating unit 122 are then inputted into theestimation function generating unit 123.

As described above, when a method of constructing an estimator based ona genetic algorithm is used, the process of generating an estimationfunction by the estimation function generating unit 123, the updatingprocess for the basis function list by the basis function listgenerating unit 121, and the calculating process for feature amountvectors by the feature amount calculating unit 122 are repeatedlyexecuted until the end condition is satisfied. After this, if the endcondition is satisfied, a reward estimator is outputted from theestimation function generating unit 123.

Also, if additional action history data is inputted, the inputtedadditional action history data is inputted into the feature amountcalculating unit 122 and the action history data integrating unit 124.Once the additional action history data has been inputted, the featureamount calculating unit 122 inputs the additional action history datainto the respective basis functions included in the basis function listto generate feature amounts. After this, the feature value vector(s)corresponding to the additional action history data and the featurevalue vectors corresponding to the existing action history data areinputted into the action history data integrating unit 124. Note that itis assumed that the existing action history data has also been inputtedinto the action history data integrating unit 124.

The action history data integrating unit 124 integrates the existingaction history data and the additional action history data using anintegration method for data sets introduced earlier. For example, theaction history data integrating unit 124 samples the action history dataand/or sets weightings for the action history data so that thedistribution of the coordinates (feature amount coordinates) shown bythe feature amount vectors in the feature amount space become aspecified distribution.

If the action history data has been sampled, the action history dataafter sampling is used as the action history data after integration.Meanwhile, if weightings have been set for the action history data, theweightings set for the respective action history data are taken intoconsideration during the regressive/discriminative learning by theestimation function generating unit 123.

Once the action history data has been integrated, the automatedconstruction process for a reward estimator is carried out using theaction history data after integration. More specifically, the integratedaction history data and feature value vectors corresponding to theintegrated action history data are inputted from the action history dataintegrating unit 124 into the estimation function generating unit 123and an estimation function is generated by the estimation functiongenerating unit 123. Also, if a method of constructing an estimatorbased on a genetic algorithm is used, processing such as the generationof the estimation function, the calculation of the contribution ratios,and the updating of the basis function list is executed using theintegrated action history data.

This completes the detailed description of the functional configurationof the reward estimator constructing unit 12.

The configuration of the information processing apparatus 10 accordingto the present embodiment has been described above. By using the aboveconfiguration, it is possible to automatically construct a thoughtroutine that decides, from an arbitrary state S, the next action a to betaken by an NPC. By using this thought routine, it is possible to makethe NPC act intelligently. Note that by changing the action history datato be used, it is also possible to make an agent such as a robot actintelligently in the same way.

2-3: Method of Efficiently Constructing a Reward Estimator

An automated construction method for a thought routine based on theautomated construction method for an estimator introduced earlier hasbeen explained thus far. By using such method, it is possible toreliably and automatically construct a thought routine. However, toautomatically construct a thought routine for an NPC that actsintelligently, it is necessary to spend a certain amount of timerepeatedly executing the learning process. For this reason, the presentinventors devised a more efficient method of constructing ahigh-performance reward estimator.

A method of efficiently constructing a reward estimator will now bedescribed with reference to FIGS. 41 and 42. This method relates to amethod that acquires action history data with higher learningefficiency. The expression “action history data with higher learningefficiency” here refers to data corresponding to feature amountcoordinates with a higher estimated reward, with a larger estimationerror, and that are located in a region with sparse density in thefeature amount space. For this reason, the three scores shown in FIG. 42are introduced. The first score is a reward score whose value increasesas the estimated reward increases. The second score is an unknown scorewhose value is higher the more sparse the density in the feature amountspace. The third score is an error score whose value increases as theestimation error increases.

For example, focus on the actions a₁, a₂, a₃ shown in FIG. 41. Supposethat the region surrounded by the broken line is a region where theestimation error is small. Assume also that the estimated rewardincreases toward the upper right in the drawing. In this case, theaction a₁ can be said to be an action with a comparatively high rewardscore, a comparatively high unknown score, and a comparatively low errorscore. The action a₂ can be said to be an action with a comparativelylow reward score, a comparatively low unknown score, and a comparativelyhigh error score. The action a₃ can be said to be an action with acomparatively high reward score, a comparatively high unknown score, anda comparatively high error score.

By preferentially selecting an action with a higher reward score, it ispossible to collect action history data that is necessary to realize ahigh reward. Similarly, by preferentially selecting an action with ahigher unknown score or a higher error score, it is possible to collectaction history data for which the result of selecting such action isindefinite. As one example, for the case shown in FIG. 41, it isbelieved that by selecting the action a₃, it is possible to collectaction history data where obtaining a higher reward is likely and theresult of selecting such action is indefinite. For the processing shownin FIG. 38, by acquiring the action history data according to the methoddescribed above in Step 1 and/or Step 3, it is possible to construct areward estimator in Step 2 with higher efficiency.

This completes the description of an efficient method of constructing areward estimator.

2-4: Modification 1. Thought Routine Using Action Score Estimator

The description above focuses on a thought routine that estimatesrewards using a reward estimator and selects an action based on theestimated rewards. As shown in FIG. 44, let us now consider a thoughtroutine that estimates action scores using an action score estimator andselects an action based on the estimated action scores. The expression“action score” here refers to a score associated with an action that canbe taken and shows the probability of a favorable result being obtainedwhen the corresponding action is taken.

When action scores are used, the action history data is provided in theform shown in FIG. 43. First, the information processing apparatus 10collects sets of a state S, an action a, and a reward r in the same wayas the action history data described earlier. After this, theinformation processing apparatus 10 calculates the action scores basedon the rewards r.

For example, suppose that the reward r=0 is obtained if the action a=“R(i.e., move to right)” is taken in the state S=S₁. In this case, theaction score corresponding to the action a=“R” is “0” and the actionscores corresponding to other actions (“L”, “N”, “J”) are “1”. As aresult, the action score (R, L, N, J)=(0, 1, 1, 1) is obtainedcorresponding to the state S=S₁ and the action a=“R”.

Suppose also that the reward r=“1” is obtained if the action a=“L (i.e.,move to left)” is taken in the state S=S₂. In this case, the actionscore corresponding to the action a=“L” is “1” and the action scorescorresponding to other actions (“R”, “N”, “J”) are “0”. As a result, theaction score (R, L, N, J)=(0, 1, 0, 0) is obtained corresponding to thestate S=S₂ and the action a=“L”.

If the sets of a state S, an action a, and an action score obtained asdescribed above are used as the action history data, an action scoreestimator that outputs estimated values of action scores in response tothe inputting of a state S is obtained through machine learning. Forexample, if an automated construction method for an estimator based on agenetic algorithm is used, it is possible to automatically construct ahigh-performance action score estimator. When collecting the actionhistory data, if the same method as the efficient method of constructinga reward estimator is used, it is possible to automatically construct anaction score estimator efficiently.

If an action score estimator is used, the configuration of the thoughtroutine is as shown in FIG. 44. That is, if the state S is inputted intothe thought routine, the thought routine inputs the state S into theaction score estimator to calculate estimated values of the actionscores. The thought routine then selects the action for which theestimated value of the action score is the highest. For example, asshown in FIG. 44, if the estimated value of the action score is (R, L,J, N)=(0.6, 0.3, 0.4, 0.2), the thought routine selects the action “R”corresponding to the estimated value “0.6”.

This completes the description of a thought routine that uses an actionscore estimator.

2-5: Modification 2. Estimation of Rewards using a Predictor

Next, a method of estimating rewards using a predictor will bedescribed. Note that the expression “predictor” here refers to analgorithm that outputs a state (t₂) at a following time t₂ when a stateS(t₁) at a given time t₁ and an action a(t₁) taken by an NPC in suchstate S(t₁) have been inputted.

2-5-1: Method of Constructing a Predictor

The predictor described above is constructed by a method such as thatshown in FIG. 45. As shown in FIG. 45, action history data acquired atdifferent points in time is used as the learning data. As one example,if a favorable result is obtained if no action is taken by the NPC in astate S₂ at time t₂, the action history data is time t=t₂, state S=S₂,action a=“no action”, and reward r=“1”. Note that an automatedconstruction method for a predictor is described in detail in thespecification of Japanese Laid-Open Patent Publication No. 2009-277084.Such specification describes a method of automatically constructing,through machine learning, a predictor that predicts observed values at afuture point in time from observed values up to a certain point in time.

2-5-2: Method of Estimating Rewards

If the predictor described above is used, as shown in FIG. 46, it ispossible to estimate rewards that are likely to be obtained in thefuture. As one example, it is possible to predict the state S(t+1)realized at the time t+1 if the NPC takes an action a(t) in a state S(t)at time t and to calculate the estimated rewards y of respective actionsthat can be taken by the NPC in such state S(t+1). This means that it ispossible to select an action to be taken by the NPC at the time t basedon the rewards estimated for the time t+1. As shown in FIG. 47, byrepeatedly using the predictor, it is also possible to calculate theestimated rewards y estimated from a state S(t+q) that is several stepsahead. In this case, it is possible to consider a combination of actionsthat can be taken by the NPC at respective points in time and to selectthe combination of actions for which the highest estimated reward isultimately obtained.

This completes the description of a method of estimating rewards using apredictor.

2-6: Modification 3. Simultaneous Learning for a Plurality of Agents

A method of constructing a thought routine that focuses on a single NPCand selects an optimal action has been described thus far. However, itis also possible to construct a thought routine that simultaneouslyconsiders actions taken by two or more NPCs. If two NPCs take actions inthe same environment, the actions taken by both NPCs are reflected inthe state S. For this reason, if this method is used, it is possible toautomatically construct a thought routine that selects an actionexpected to result in the highest estimated reward for a present NPC inan environment where another NPC takes an action expected to result inthe highest estimated reward for such NPC. The automated construction ofsuch a thought routine is realized using Min-maxing, for example. Thiscompletes the description of simultaneous learning for a plurality ofagents.

This also completes the description of the embodiment of the presentdisclosure.

3: APPLICATIONS

Methods of specifically applying the technology of the embodimentdescribed above will now be introduced.

3-1: Application to Tic-tac-toe

First, a method of applying the technology of the embodiment describedabove to tic-tac-toe will be described with reference to FIGS. 48 to 54.As shown in FIG. 48, the main rules of tic-tac-toe are that the playerstake alternate turns and that the first player to place three marks in arow wins. For tic-tac-toe, the state S is the current state of the boardand an action a is a move taken by a player.

For tic-tac-toe, it is known that optimal moves by both players willresult in a draw. Many thought routines used for this type of perfectinformation game are composed of a static evaluation function and alook-ahead algorithm. The static evaluation function is a function thatquantifies whether a given game phase is advantageous ordisadvantageous. For example, when the game phases shown in FIG. 49 areprovided, the static evaluation function outputs the value y (where“disadvantageous for ◯”: −1, “neutral”: 0, “advantageous for ◯”: 1)showing whether such game phases are advantageous or disadvantageous.With the embodiment described above, the function of the staticevaluation function is realized by a reward estimator.

A look-ahead algorithm is an algorithm that looks ahead to future movesand selects a move for which a higher output value will be obtained fromthe static evaluation function in the future. As one example, thelook-ahead algorithm is realized using Min-maxing. As one example, asshown in FIG. 50, the look-ahead algorithm imagines the moves that canbe taken by the opponent after the present player has taken a move,imagines the moves that the present player can then take in response tothe imagined moves of the opponent, and selects the most advantageousmove for the present player.

However, static evaluation functions such as those described above havehitherto been designed manually. For example, even with Bonanza, afamous shogi AI program, design elements, such as the features of gamephases considered by a static evaluation function, were manuallydesigned. Also, if the type of game is changed, it becomes necessary toalso change the design of the feature amounts. For this reason, it hasbeen necessary to manually design a static evaluation function for eachgame through repeated trial and error. However, by applying thetechnology according to the above embodiment, it is possible toautomatically construct a thought routine while omitting such manualdesign work.

In the case of tic-tac-toe, as shown in FIG. 51, the state S and theaction a can be expressed by a 3×3 matrix. Here, the state S expressesthe board when it has become the present player's turn. A board thatreflects the present player's current move is expressed as (S, a). Inaddition, the present player's moves are expressed as “1”, theopponent's moves are expressed as “−1”, and empty spaces are expressedas “0”. That is, the board and moves are represented by values. If it ispossible to express the board and moves with values in this way, it willbe possible to automatically construct a thought routine using theautomated construction method for a reward estimator according to theabove embodiment.

For example, the information processing apparatus 10 first uses Innateto perform moves by the present player and the opponent at randompositions to generate action history data. As described above, (S, a) isexpressed by a 3×3 matrix. As shown in FIG. 52, the informationprocessing apparatus 10 assigns the reward “1” to (S, a) correspondingto all of the moves that lead to a win. Meanwhile, as shown in FIG. 53,the information processing apparatus 10 assigns the reward “−1” to (S,a) corresponding to all of the moves that lead to a loss. Once actionhistory data has been accumulated in this way, the informationprocessing apparatus 10 constructs a reward estimator using theaccumulated action history data.

When selecting an actual move, as shown in FIG. 54 the informationprocessing apparatus 10 uses a reward estimator to calculate theestimated rewards y from the present state S and selects the move withthe highest estimated reward y.

In the example in FIG. 54, the move (C) corresponding to the highestestimated reward is selected. Note that although the move is selected inthe example in FIG. 54 by evaluating the reward one step ahead, it isalso possible to use a configuration where estimated rewards arecalculated in the same way for the opponent and a method such asMin-maxing is used to select the present move using the results oflooking several moves ahead.

Also, if a configuration that normally selects an optimal action using areward estimator obtained by learning is used, there can be the problemthat an NPC selects the same move every time. For this reason, somerandomness may be added to the process of calculating the estimatedrewards. For example, it would be conceivable to use a method that addsa small random number to the estimated rewards calculated by a rewardestimator. Also, if a reward estimator is calculated by machine learningbased on a genetic algorithm, it would be possible to use aconfiguration where a reward estimator calculated for each learninggeneration is stored and the reward estimator to be used is switchedrandomly.

This completes the description of the application to tic-tac-toe.

3-2: Application to Fighting Game

Next, a method of applying the technology according to the aboveembodiment to a fighting game will be described with reference to FIGS.55 to 62. As shown in FIG. 55, the main rules of the fighting gameconsidered here are (1) the game is a fight between two characters, (2)the actions of the respective players are a combination of “move toleft”, “move to right”, “no left/right movement”, “jump”, and “no jump”,and (3) if the player tramples on the opponent, damage to the opponentis caused in keeping with the difference in acceleration in the Y axisdirection. Also, a player loses when his/her hit points reach 0. Notethat in this application to a fighting game, the method of constructinga thought routine using an action score estimator described earlier isused.

In this case, the absolute coordinates of the present player, theabsolute coordinates of the opponent, and the time are used as the stateS. For this reason, the state S is expressed by a three-dimensionalmatrix such as that shown in FIG. 56. Here, consider an automatedconstruction method for an action score estimator that estimates anaction score that has five elements (N, L, R, J, NJ) in response toinput of a state S expressed by a three-dimensional matrix. Here, theelement N is the action score corresponding to the action a=“(noleft/right movement)”. The element L is the action score correspondingto the action a=“(move to left)”. The element R is the action scorecorresponding to the action a=“(move to right)”. The element J is theaction score corresponding to the action a=“(jump)”. The element NJ isthe action score corresponding to the action a=“(no jump)”.

As Innate for collecting the action history data, as one example amethod that selects a player's moves completely randomly is used. As oneexample, such Innate randomly selects one action out of N (no left/rightmovement), L (move to left), and R (move to right) and randomly selectsan action to be combined with the selected action out of J (jump) and NJ(no jump). Also, as shown in FIG. 57, when the player causes damage tothe opponent, the information processing apparatus 10 sets the reward ofthe action history data from the time at which the player or theopponent previously received damage to the present time at 1. Meanwhile,if the player has received damage, as shown in FIG. 57, the informationprocessing apparatus 10 sets the reward of the action history data fromthe time at which the player or the opponent previously received damageto the present time at 0.

Note that for the action history data where the reward is set at 1, theinformation processing apparatus 10 sets the action score of the actionthat was actually carried out at 1 and the action scores of actions thatwere not carried out at 0. Meanwhile, for the action history data wherethe reward is set at 0, the information processing apparatus 10 sets theaction score of the action that was actually carried out at 0 and theaction scores of actions that were not carried out at 1. By repeatingsuch processing, action history data such as that shown in FIG. 57composed of a state S and action scores is obtained.

Once the action history data has been obtained, the informationprocessing apparatus 10 constructs the thought routine according to theflow of processing shown in FIG. 58. As shown in FIG. 58, once theaction history data has been obtained (S301), the information processingapparatus 10 constructs a thought routine through machine learning usingthe acquired action history data (S302). Next, the informationprocessing apparatus 10 acquires additional action history data asnecessary (S303). After this, the information processing apparatus 10integrates the added action history data into the original actionhistory data (S304). The information processing apparatus 10 thendetermines whether an end condition is satisfied (S305).

As examples, when an end operation has been carried out by the user orwhen the win ratio over a player who acts randomly has exceeded aspecified threshold, the information processing apparatus 10 determinesthat the end condition is satisfied. If the end condition is notsatisfied, the information processing apparatus 10 returns to step S302.Meanwhile, if the end condition is satisfied, the information processingapparatus 10 ends the series of processes relating to the constructionof a thought routine.

The results shown in FIG. 59 were obtained for the win ratio against aplayer who acts randomly and result from the player acting according tothe thought routine that has been automatically constructed as describedabove. As shown in FIG. 59, the win ratio of a player who acts using thethought routine reached a value close to 100% in 15 generations (i.e.,the number of iterations of step S302 to S304 in FIG. 58 was 15). Notethat the selection of an action was carried out according to a method ofselecting the action with the highest action score. However, whenselecting an action in this example, the action was selected afteradding a small random number to each action score.

Also, a thought routine was constructed by simultaneously learning theactions of the two players using the simultaneous learning of aplurality of agents described earlier. Since a thought routine thatattempts to win against a player who is not moving randomly isautomatically constructed when simultaneous learning of a plurality ofagents is used, a thought routine that moves a player more intelligentlyis constructed. Note that the results of fights between two players whoboth move using a thought routine are shown in FIG. 60. As shown in FIG.60, depending on the learning generation, there are cases where player 1wins most of the time and cases where player 2 wins most of the time.

As shown in FIG. 61, the result of experimentally having 1,000 fightscarried out for a given learning generation was that that player 1 wonmost of the time (i.e., had a high win ratio). Here, when the opponentwas a player who moves randomly (i.e., a random opponent), both player 1and player 2 achieved a win ratio of at least 90% against theiropponent. That is, a player who moves according to the thought routinemoves sufficiently intelligently. In this way, when simultaneouslearning of a plurality of agents is used, while the thought routine isbeing improved so as to beat the opponent, a versatile algorithm capableof also beating an opponent who moves randomly is obtained.

However, although a three-dimensional matrix expressing the presentplayer's coordinates, the opponent's coordinates, and the time is usedin the above description as the state S, a method that uses imageinformation of a game screen as it is in place of such three-dimensionalmatrix is also conceivable. For example, as the state S, it is alsopossible to use a luminance image of a game screen such as that shown inFIG. 62. That is, the state S may be anything that includes usefulinformation for deciding an action. Based on this notion, it should bepossible to easily imagine applying the technology according to theabove embodiment to an automated construction method of a thoughtroutine relating to a variety of games and tasks.

This completes the description of the application to a fighting game.

3-3: Application to “Connect Five” Game

Next, a method of applying the technology according to the aboveembodiment to a “connect five” game will be described with reference toFIGS. 63 and 64. The main rules of connect five are that the playerstake alternate turns and that the first player to place five stones in arow vertically, horizontally, or diagonally wins. For connect five, thestate S is the board and an action a is a move taken by a player.

The method of applying the technology to connect five is fundamentallythe same as the method of applying the technology to tic-tac-toe. Thatis, as shown in FIG. 63, the state S and the action a are expressed by atwo-dimensional matrix. The action history data used first is acquiredusing Innate that places stones completely randomly. The reward 1 is setfor all (S, a) that ultimately lead to a win and the reward 0 is set forall (S, a) that ultimately lead to a loss. The information processingapparatus 10 constructs a thought routine using such action historydata. The information processing apparatus 10 also plays a match usingsuch thought routine and constructs a thought routine using actionhistory data in which the result of such match has been integrated. Byrepeating such processing, a thought routine that selects intelligentactions is constructed.

When selecting an action, the information processing apparatus 10 findsthe estimated rewards for all possible actions (i.e., for cases wherestones have been placed on all of the available points) in the same wayas with tic-tac-toe, and places a stone on the point with the highestestimated reward. It should be obvious that the information processingapparatus 10 may be configured so as to look several moves ahead whenselecting the position where a stone is to be placed. Note that thenumber of board permutations for connect five is huge compared totic-tac-toe. For this reason, a player who places stones randomly islikely to make very bad moves and is therefore extremely weak.

Accordingly, carrying out learning with a player who places stonesrandomly as an opponent may only produce a thought routine capable ofbeating extremely weak opponents and is unlikely to result in anintelligent thought routine. For this reason, in the same way as afighting game, it is preferable to use a method that carries outsimultaneous learning for a plurality of agents to learn about both theplayer and the opponent in the same environment. By using thisconfiguration, it is possible to automatically construct a comparativelyhigh-performance thought routine. The results of matches between playerswho both move using thought routines are shown in FIG. 64.

This completes the description of the application to connect five.

3-4: Application to Poker

Next, a method of applying the technology according to the aboveembodiment to poker will be described with reference to FIGS. 65 to 67.As shown in FIG. 65, the main rules of poker are (1) players are dealtfive cards, (2) each player selects cards to discard, and (3) thestrongest hand wins. Here, let us consider a method of constructing athought routine that decides the cards to be discarded after the cardshave been dealt.

As shown in FIG. 66, the state S and the action a are expressed usingcharacter strings. As examples, the ace of hearts is expressed as “HA”,the two of clubs as “C2” and the king of diamonds as “DK”. In theexample shown in FIG. 66, the state S is expressed by the characterstring “SJCJC0D9D7”. If the nine of diamonds and the seven of diamondsare discarded, the action a is expressed by the character string “D9D7”.Also, the reward “1” is assigned if the game is won and the reward “0”is assigned if the game is lost. When cards are expressed in this way,action history data such as that shown in FIG. 67 is obtained forexample.

As Innate that first acquires the action history data, as one example itis possible to use a method that decides whether to discard the fivecard(s) individually in a completely random manner. Also, theinformation processing apparatus 10 sets the reward “1” for actionhistory data for a win and the reward “0” for action history data for aloss. The information processing apparatus 10 then uses the accumulatedaction history data to construct a thought routine. At this time,information such as the result of selecting an action, what kind of handwas ultimately produced, and the opponent's hand is not used. That is,the thought routine is constructed with consideration only to whetherthe game was ultimately won or lost. Here, there is a tendency wherebythe more advantageously cards were kept or discarded in the actionhistory data for the creation of a strong hand for the current player,the higher the probability that the reward of such action history datawill be “1”.

When an action is selected, the selection options of “keep” or “discard”are given for each of the five dealt cards. This means that there are atotal of 2⁵=32 different combinations for the action. Accordingly, thethought routine uses a reward estimator to calculate the estimatedrewards for 32 (S, a) patterns and selects the action with the highestestimated reward.

This completes the description of the application to poker.

3-5 Application to Role-Playing Game

Next, a method of applying the technology according to the aboveembodiment to a role-playing game will be described with reference toFIGS. 68 to 79. Here, let us consider an automated construction methodfor a thought routine that automatically and intelligently operates acharacter in place of a player in a fight scene in a role-playing game.Note that the rules of the role-playing game considered here are asshown in FIG. 68. As shown in FIG. 68, the state S is informationprovided to the player and the action a is a command for operating acharacter.

The environment of the fight scene is as shown in FIG. 69. First, if afight is won, experience points are divided up between the survivors. Inaddition, by accumulating experience points, a character can “level up”.When a character levels up, the status value increases in keeping withthe profession of the character and/or the character becomes able to usemagic. When a character wins five consecutive fights, the level of theenemy is increased by one and the hit points of the character areregained. The game is cleared when the enemy level reaches 31.

Note that in a fight scene, the timing at which each character takesaction is decided in keeping with a “speed” value that is part of thestatus of each character. Also, the actions that can be taken by acharacter are “attack” and “use magic” (if the character has magicabilities). The types of magic are “heal”, “fire”, and “ice”. “Heal” ismagic that causes allies to recover hit points (HP). “Fire” is magicthat attacks an enemy using fire. “Ice” is magic that attacks an enemyusing ice. It is also possible to select whether the target of the magicis a single enemy or all enemies. However, if all enemies are selected,the effect of the magic is halved. Also, the type and level of the magicthat can be used change according to the level of the character. Inaddition, even for the same magic, the higher the level of the magic,the larger the number of magic points (MP) consumed and the larger theeffect.

The professions of characters and the status for each profession are asshown in FIG. 70. The status increase rate shows the rate at which thestatus increases when the level of a character goes up by one. The magiclevel Lv shows the level of the possessed magic ability when the levelindicated by the value has been reached. Blanks indicate that thecorresponding magic ability is not available. The value 0 indicates thatthe corresponding magic ability is available from the start.

Note that a party of allies is composed of characters with the upperfour types of profession. Meanwhile, a party of enemies is composed ofcharacters selected from characters with the lower four types ofprofession.

The information on the allies side used as the state S is shown in FIG.71. As one example, the level, profession, HP, max HP, MP, max MP,attack strength, defense strength, and speed of each of the survivingallies are used as the state S. Note that for the profession columns,“1” is given as the value in the column of the corresponding professionand “0” is given in the other profession columns. The current values arewritten in the other columns relating to HP and the like. Meanwhile, theinformation on the enemy side used as the state S is shown in FIG. 72.As one example, the level, profession, and total damage of the survivingenemies are used as the state S. Note that the total damage is the totalof the damage that has been caused thus far.

Also, the information on the allies side used as the action a is shownin FIG. 73. As one example, 1 is given for the performer (i.e., thecharacter about to perform the action) and 0 is given for the othercharacters. In the action target column, 1 is given for the characterswho will receive the action and 0 is given for the other characters. Forexample, 1 is given in the action target column corresponding to acharacter who is to receive healing magic. Also, 1 is given in theaction type column of the action to be taken and 0 is given in theaction type columns of actions not to be taken. Meanwhile, theinformation on the enemy side used as the action a is shown in FIG. 74.As shown in FIG. 74, information on the action target is used as theinformation on the enemy side.

In the same way as the example applications described earlier, theinformation processing apparatus 10 first acquires action history data.At this time, the information processing apparatus 10 applies weightingsto the selection probabilities for each type of action and acquiresaction history data using Innate that randomly selects an action. Forexample, the information processing apparatus 10 causes the charactersto carry out an action using Innate where the probability of selectingattack has been set higher than magic. As shown in FIG. 75, theinformation processing apparatus 10 sets a reward of “−5” in the actionhistory data if an ally is defeated and a reward of “1” in the actionhistory data if an enemy is defeated. As a result, action history datasuch as that shown in FIG. 76A is obtained.

However, to further take into consideration an evaluation of the processby which an ally or an enemy is defeated, the information processingapparatus 10 causes linear decay in the rewards as shown in FIG. 76B.

The information processing apparatus 10 constructs the thought routineusing the action history data acquired as described above. At this time,the information processing apparatus 10 constructs a predictor thatestimates the state S′ at time t+1 from the state S at the time t andthe action a. The information processing apparatus 10 also constructs areward estimator that calculates estimated rewards from the state S′ attime t+1. As shown in FIG. 77, the information processing apparatus 10then uses a predictor to predict the next state S′ for each action thatcan be taken by a character in the present state S. In addition, theinformation processing apparatus 10 inputs the predicted state S′ intothe reward estimator to calculate the estimated rewards y. Theinformation processing apparatus 10 that has calculated the estimatedrewards y selects the action a where the estimated reward y is thehighest.

In the example in FIG. 77, the estimated reward y corresponding to theaction a=“Fire at all enemies” is the highest. For this reason, in thisexample, action a=“Fire at all enemies” is selected as the optimalaction. Here, as shown in FIG. 78, the thought routine may be configuredso as to select an action with a high estimated reward, a highestimation error, and which corresponds to feature amount coordinates ina region with a sparse density in the feature amount space. That is, thethought routine may be constructed based on the reward score, theunknown score, and the error score introduced for the efficient methodof constructing a reward estimator described earlier.

Note that the reward scores are obtained by finding the estimatedrewards for all of the actions that can be taken using a rewardestimator and assigning scores that increase as the estimated rewardincreases, such as 1, 2, 3, . . . in order from the lowest estimatedreward. The unknown scores are obtained by finding the peripheraldensities of the feature amount coordinates for all of the actions usingthe method shown in FIG. 25 or the like and assigning scores thatincrease as the density falls, such as 1, 2, 3, . . . in order from thehighest density.

Also to find the error scores, the information processing apparatus 10first compares the values of estimated rewards y with the actual rewardsr and finds the error for all of the existing action history data. Next,the information processing apparatus 10 plots the feature amountcoordinates corresponding to action history data whose error is largerthan a mean value in the feature amount space. After this, theinformation processing apparatus 10 finds the density distribution ofthe feature amount coordinates that have been plotted. Finally, theinformation processing apparatus 10 finds the density for the featureamount coordinates corresponding to all of the action history data andassigns scores that increase as the density increases, such as 1, 2, 3,. . . in order from the lowest density.

As one example, when the reward score is expressed as s₁, the unknownscore as s₂, and the error score as s₃, when selecting an action, theinformation processing apparatus 10 calculates a value s₁×w₁+s₂×w₂+s₃×w₃(where w₁ to w₃ are specified weightings) and selects the action forwhich such value is the highest. By selecting an action in this way, itis possible to select an action with a high reward, a large estimationerror, and whose feature amount coordinates are in a region with asparse density in the feature amount space.

The effect of using the efficient method of constructing a rewardestimator will now be described with reference to FIG. 79. The graph inFIG. 79 is a graph in which the mean reward per step until a scenario iscleared is compared for a case where the action for which the highestestimated reward is obtained was selected (“optimal strategy”) and acase where the efficient method of constructing the reward estimator wasused (“search behavior”). As should be clear from the graph in FIG. 79,a high reward is stably obtained by the thought routine (searchbehavior) constructed so as to use the three scores. From thisevaluation result, it was understood that it is possible to reduce thecomputation load and to also construct a thought routine with higherperformance by using the efficient method of constructing a rewardestimator

Note that it was also understood that the automatically constructedthought routine applied to a role playing game is also capable of addingthe following strategies.

(A) Concentrated Attack

A concentrated attack is made to rapidly reduce the number of enemies.

(B) Recover if HP Falls

HP of an ally who has suffered a fall in HP are recovered to protect theally from defeat

(C) Switching Between Individual Attack and Group Attack

When there is a comparatively large number of enemies, magic thatattacks all enemies is used. If it appears that an enemy currentlysubjected to a concentrated attack can be defeated by a little damage,it is possible to defeat such enemy and to also cause damage to otherenemies using magic that attacks every enemy.

(D) Avoiding Wasted Use of Magic

Healing magic is not used on allies that have not suffered a fall in HP.Magic is also not used on enemies for which the magic has no effect.

This completes the description of an application to a role-playing game.

As described above, by applying the technology according to the aboveembodiment, it is possible to automatically construct a variety ofthought routines without requiring manual adjustment.

4: EXAMPLE HARDWARE CONFIGURATION

The functions of the respective component elements of the informationprocessing apparatus 10 described above can be realized using thehardware configuration shown in FIG. 80, for example. That is, thefunctions of the respective component elements are realized bycontrolling the hardware shown in FIG. 80 using a computer program. Notethat the form of the hardware is arbitrary and as examples includes apersonal computer, a mobile phone, a PHS, a mobile information terminalsuch as a PDA, a game console, or a variety of intelligent homeappliances. Here, the expression “PHS” is an abbreviation for “PersonalHandy-phone System”. The expression “PDA” given above is an abbreviationfor “Personal Digital Assistant”.

As shown in FIG. 80, the hardware mainly includes a CPU 902, a ROM 904,a RAM 906, a host bus 908, and a bridge 910. In addition, the hardwareincludes an external bus 912, an interface 914, an input unit 916, anoutput unit 918, a storage unit 920, a drive 922, a connection port 924,and a communication unit 926. Here, the expression “CPU” is anabbreviation for “Central Processing Unit”. The expression “ROM” is anabbreviation for “Read Only Memory”. The expression “RAM” is anabbreviation for “Random Access Memory”

The CPU 902 functions as a computational processing apparatus or acontrol apparatus, for example, and all or some of the operations of therespective component elements are controlled based on various programsrecorded in the ROM 904, the RAM 906, the storage unit 920, or aremovable recording medium 928. The ROM 904 is a device that stores aprogram written into the CPU 902 and data and the like used in thecomputation. In the RAM 906, as examples a program written into the CPU902 and various parameters that change as appropriate when such programis executed are temporarily or permanently stored.

As one example, such component elements are connected to one another viathe host bus 908 that is capable of high speed data transfer. Meanwhile,as one example, the host bus 908 is connected via the bridge 910 to theexternal bus 912 that has a comparatively low data transfer speed. Asthe input unit 916, as examples, a mouse, a keyboard, a touch panel,buttons, switches, and levers are used. In addition, a remote controllercapable of transmitting a control signal using infrared or otherelectromagnetic waves may be used as the input unit 916.

The output unit 918 is an apparatus that audibly or visibly notifies theuser of acquired information, such as a display apparatus like a CRT, anLCD, a PDP, or an ELD, an audio output apparatus like a speaker orheadphones, a printer, a mobile phone, or a facsimile device. Here,“CRT” is an abbreviation for “Cathode Ray Tube”, “LCD” is anabbreviation for “Liquid Crystal Display”, “PDP” is an abbreviation for“Plasma Display Panel”, and “ELD” is an abbreviation for“Electro-Luminescence Display”.

The storage unit 920 is an apparatus for storing various types of data.As examples, a magnetic storage device such as a hard disk drive (HDD),a semiconductor storage device, an optical storage device, or amagneto-optical storage device is used as the storage unit 920. Here,“HDD” is an abbreviation for “Hard Disk Drive”.

As one example, the drive 922 is an apparatus that reads informationrecorded on the removable recording medium 928, which may be a magneticdisk, an optical disc, a magneto-optical disc, or a semiconductormemory, or writes information onto the removable recording medium 928.As examples, the removable recording medium 928 is a DVD medium, aBlu-ray medium, an HD-DVD medium, or various types of semiconductorstorage media. It should be obvious that as other examples, theremovable recording medium 928 may be an IC card equipped with acontactless IC chip, an electronic appliance, or the like. Here, “IC” isan abbreviation for “Integrated Circuit”.

The connection port 924 is a port, such as a USB port, a IEEE 1394 port,a SCSI, an RS-232C port, or an optical audio jack, for connecting to anexternally-connected appliance 930. The externally-connected appliance930 is a printer, a mobile music player, a digital camera, a digitalvideo camera, or an IC recorder, for example. Here, “USB” is anabbreviation for “Universal Serial Bus” and “SCSI” is an abbreviationfor “Small Computer System Interface”.

The communication unit 926 is a communication device for connecting tothe network 932 and as examples is a communication card for wired orwireless LAN, Bluetooth (registered trademark), or WUSB, a router foroptical communication, an ADSL router, or various types of communicationmodem. The network 932 connected to the communication unit 926 isconfigured by a network that is connected wirelessly or using wires, andas examples is the Internet, a home LAN, infrared communication, visiblelight communication, a broadcast, or satellite communication. Here,“LAN” is an abbreviation for “Local Area Network” and “WUSB” is anabbreviation for “Wireless USB”. “ADSL” is an abbreviation for“Asymmetric Digital Subscriber Line”.

This completes the description of an example hardware configuration.

5: CONCLUSION

Finally, the technical concept of the above embodiment will besummarized in brief. The technical concept given below can be applied toa variety of information processing apparatuses such as a PC, a mobilephone, a mobile game console, a mobile information terminal, anintelligent home appliance, or a car navigation system.

The function configuration of the information processing apparatusdescribed above can be expressed as shown below. For example, theinformation processing apparatus described in (1) below canautomatically construct a reward estimator using action history data.When such reward estimator is used, it is possible to estimate, forevery action that can be taken by an agent in response to a state inwhich the agent is present, a reward obtained by the agent on carryingout such action. This means that by carrying out control to have theagent take an action estimated to obtain a high reward, it is possibleto realize intelligent action for an agent. In other words, theinformation processing apparatus described in (1) below is able toautomatically construct a thought routine capable of realizingintelligent action for an agent.

(1) An information processing apparatus comprising:

a reward estimator generating unit using action history data, whichincludes state data expressing a state of an agent, action dataexpressing an action taken by the agent in the state, and a reward valueexpressing a reward obtained by the agent as a result of the action, aslearning data to generate, through machine learning, a reward estimatorthat estimates a reward value from the inputted state data and theaction data,

wherein the reward estimator generating unit includes:

a basis function generating unit generating a plurality of basisfunctions by combining a plurality of processing functions;

a feature amount vector calculating unit calculating feature amountvectors by inputting the state data and the action data included in theaction history data into the plurality of basis functions; and

an estimation function calculating unit calculating an estimationfunction that estimates the reward value included in the action historydata from the feature amount vectors according toregressive/discriminative learning,

wherein the reward estimator includes the plurality of basis functionsand the estimation function.

(2) The information processing apparatus according to (1), furthercomprising:

a reward value estimating unit inputting, into the reward estimator,state data expressing a present state in which an agent is present andaction data expressing actions that can be taken next by the agent toestimate reward values obtained by the agent as a result of taking theactions; and

an action selecting unit selecting an action that has a highest rewardvalue estimated by the reward value estimating unit out of the actionsthat can be taken next by the agent in the present state.

(3) The information processing apparatus according to (2), furthercomprising:

an action control unit causing the agent to take an action based on aselection result of the action selecting unit; and

a history data adding unit accumulating state data and action dataupdated in keeping with an action of the agent, associating a rewardvalue expressing a reward obtained by the agent as a result of theaction with the accumulated state data and action data and adding to theaction history data.

(4) The information processing apparatus according to (3),

wherein the feature amount vector calculating unit is operable when aset of the state data, the action data, and the reward value has beenadded to the action history data, to calculate feature amount vectorsfor all of the state data and the action data included in the actionhistory data, and

the information processing apparatus further comprises a distributionadjusting unit sampling the sets of the state data, the action data, andthe reward value included in the action history data so that adistribution of coordinate points indicated by the feature amountvectors in a feature amount space approaches a specified distribution.

(5) The information processing apparatus according to (3),

wherein the feature amount vector calculating unit is operable when aset of the state data, the action data, and the reward value has beenadded to the action history data, to calculate feature amount vectorsfor all of the state data and the action data included in the actionhistory data, and

the information processing apparatus further comprises a distributionadjusting unit setting weightings for the sets of the state data, theaction data, and the reward value included in the action history data sothat a distribution of coordinate points indicated by the feature amountvectors in a feature amount space approaches a specified distribution.

(6) The information processing apparatus according to (4),

wherein the distribution adjusting unit sets weightings for the sets ofthe state data, the action data, and the reward value included in theaction history data so that the distribution of coordinate pointsindicated by the feature amount vectors in a feature amount space forthe sets of the state data, the action data, and the reward valueremaining after sampling approaches a specified distribution.

(7) The information processing apparatus according to any one of (2) to(6), further comprising:

a predictor generating unit using the action history data as learningdata to generate, through machine learning, a predictor that predicts,from state data expressing a state in which the agent is present at apresent time and action data expressing an action taken by the agent atthe present time, state data expressing a state of an agent at a nexttime following the present time;

wherein the reward value estimating unit inputs, into the predictor,state data for the present time and action data to predict state dataexpressing a state of the agent at the next time, and inputs, into thereward estimator, the state data expressing the state of the agent atthe next time and action data expressing an action that can be taken bythe agent in the state at the next time to estimate a reward valueobtained by the agent as a result of taking the action.

(8) The information processing apparatus according to any one of (2) to(6), further comprising:

a predictor generating unit using the action history data as learningdata to generate, through machine learning, a predictor that predicts,from state data expressing a state in which the agent is present at apresent time and action data expressing an action taken by the agent atthe present time, state data expressing a state of an agent at a nexttime following the present time;

wherein the reward value estimating unit

is operable, if a present time is expressed as time t₀, to execute aprocess that inputs state data at time t₀ and action data into thepredictor to predict state data expressing a state of the agent at anext time t₁,

successively executes a process that inputs state data for a time t_(k)(where k=1 to (n−1) and n≧2) and action data expressing an action thatcan be taken by the agent at time t_(k) into the predictor to predictstate data expressing the state of the agent at a time t_(k+1), and

inputs predicted state data expressing a state of the agent at a timet_(n) and action data expressing an action that can be taken by theagent in the state at time t_(n) into the reward estimator to estimate areward value obtained by the agent as a result of taking the action.

(9) The information processing apparatus according to any one of (1) to(8),

wherein the reward estimator generating unit uses action history data,which includes state data expressing a state of a plurality of agents,action data expressing actions taken by respective agents in the state,and reward values expressing rewards obtained by the respective agentsas a result of the actions, as learning data to generate, throughmachine learning, a reward estimator estimating a reward value from theinputted state data and action data.

(10) The information processing apparatus according to any one of (1) to(9),

wherein the basis function generating unit updates the basis functionsbased on a genetic algorithm,

the feature amount vector calculating unit is operable when the basisfunctions have been updated, to input the state data and the action datainto the updated basis functions to calculate the feature amountvectors, and

the estimation function calculating unit calculates the estimationfunction that estimates the reward value in response to input of thefeature amount vectors calculated using the updated basis functions.

(11) An information processing apparatus, comprising:

a score calculating unit calculating, based on action history dataincluding state data expressing a state of an agent, action dataexpressing an action taken by the agent in the state, and a reward valueexpressing a reward obtained by the agent as a result of the action,scores for each action corresponding to respective state data accordingto a condition where a high score is assigned to an action taken by anagent who obtained a large reward and an action not taken by an agentwho obtained a small reward and a low score is assigned to an action nottaken by the agent who obtained a large reward and an action taken bythe agent who obtained a small reward; and

a score estimator generating unit generating, according to machinelearning and using the action history data and the score for each actionas learning data, a score estimator that estimates a score for eachaction from state data that has been inputted,

wherein the score estimator generating unit includes:

a basis function generating unit generating a plurality of basisfunctions by combining a plurality of processing functions;

a feature amount vector calculating unit calculating feature amountvectors by inputting the state data included in the action history datainto the plurality of basis functions; and

an estimation function calculating unit calculating an estimationfunction that estimates the score for each action from the featureamount vectors according to regressive/discriminative learning,

wherein the score estimator includes the plurality of basis functionsand the estimation function.

(12) An information processing method comprising:

using action history data, which includes state data expressing a stateof an agent, action data expressing an action taken by the agent in thestate, and a reward value expressing a reward obtained by the agent as aresult of the action, as learning data to generate, through machinelearning, a reward estimator that estimates a reward value from theinputted state data and the action data,

wherein generating the reward estimator includes:

generating a plurality of basis functions by combining a plurality ofprocessing functions;

calculating feature amount vectors by inputting the state data and theaction data included in the action history data into the plurality ofbasis functions; and

calculating an estimation function that estimates the reward valueincluded in the action history data from the feature amount vectorsaccording to regressive/discriminative learning,

wherein the reward estimator includes the plurality of basis functionsand the estimation function.

(13) An information processing method, comprising:

calculating, based on action history data including state dataexpressing a state of an agent, action data expressing an action takenby the agent in the state, and a reward value expressing a rewardobtained by the agent as a result of the action, scores for each actioncorresponding to respective state data according to a condition where ahigh score is assigned to an action taken by an agent who obtained alarge reward and an action not taken by an agent who obtained a smallreward and a low score is assigned to an action not taken by the agentwho obtained a large reward and an action taken by the agent whoobtained a small reward; and

generating, according to machine learning and using the action historydata and the score for each action as learning data, a score estimatorthat estimates a score for each action from state data that has beeninputted,

wherein generating the score estimator includes:

generating a plurality of basis functions by combining a plurality ofprocessing functions;

calculating feature amount vectors by inputting the state data includedin the action history data into the plurality of basis functions; and

calculating an estimation function that estimates the score for eachaction from the feature amount vectors according toregressive/discriminative learning,

wherein the score estimator includes the plurality of basis functionsand the estimation function.

(14) A program causing a computer to realize:

a reward estimator generating function using action history data, whichincludes state data expressing a state of an agent, action dataexpressing an action taken by the agent in the state, and a reward valueexpressing a reward obtained by the agent as a result of the action, aslearning data to generate, through machine learning, a reward estimatorthat estimates a reward value from the inputted state data and theaction data,

wherein the reward estimator generating function includes:

a basis function generating function generating a plurality of basisfunctions by combining a plurality of processing functions;

a feature amount vector calculating function calculating feature amountvectors by inputting the state data and the action data included in theaction history data into the plurality of basis functions; and

an estimation function calculating unit calculating an estimationfunction that estimates the reward value included in the action historydata from the feature amount vectors according toregressive/discriminative learning,

wherein the reward estimator includes the plurality of basis functionsand the estimation function.

(15) A program causing a computer to realize:

a score calculating function calculating, based on action history dataincluding state data expressing a state of an agent, action dataexpressing an action taken by the agent in the state, and a reward valueexpressing a reward obtained by the agent as a result of the action,scores for each action corresponding to respective state data accordingto a condition where a high score is assigned to an action taken by anagent who obtained a large reward and an action not taken by an agentwho obtained a small reward and a low score is assigned to an action nottaken by the agent who obtained a large reward and an action taken bythe agent who obtained a small reward; and

a score estimator generating function generating, according to machinelearning and using the action history data and the score for each actionas learning data, a score estimator that estimates a score for eachaction from state data that has been inputted,

wherein the score estimator generating function includes:

a basis function generating function generating a plurality of basisfunctions by combining a plurality of processing functions;

a feature amount vector calculating function calculating feature amountvectors by inputting the state data included in the action history datainto the plurality of basis functions; and

an estimation function calculating function calculating an estimationfunction that estimates the score for each action from the featureamount vectors according to regressive/discriminative learning,

wherein the score estimator includes the plurality of basis functionsand the estimation function.

Comments

The reward estimator constructing unit 12 described above is one exampleof a “reward estimator generating unit”. The basis function listgenerating unit 121 described above is one example of a “basis functiongenerating unit”. The feature amount calculating unit 122 describedabove is one example of a “feature amount vector calculating unit”. Theestimation function generating unit 123 described above is one exampleof an “estimation function calculating unit”. The action selecting unit14 described above is one example of a “reward value estimating unit”,an “action selecting unit”, and an “action control unit”. The actionhistory data acquiring unit 11 described above is one example of a“history data adding unit”. The action history data integrating unit 124described above is one example of a “distribution adjusting unit”. Thereward estimator constructing unit 12 described above is one example ofa “predictor generating unit”. The “reward estimator constructing unit12” described above is also one example of a “score calculating unit”and a “score estimator generating unit”.

Although a preferred embodiment of the present disclosure has beendescribed above with reference to the attached drawings, it should beobvious that the present disclosure is not limited to the exampleconfigurations described in this specification. It should be understoodby those skilled in the art that various modifications, combinations,sub-combinations and alterations may occur depending on designrequirements and other factors insofar as they are within the scope ofthe appended claims or the equivalents thereof.

The present disclosure contains subject matter related to that disclosedin Japanese Priority Patent Application JP 2011-224638 filed in theJapan Patent Office on Oct. 12, 2011, the entire content of which ishereby incorporated by reference.

What is claimed is:
 1. An information processing apparatus comprising: areward estimator generating unit using action history data, whichincludes state data expressing a state of an agent, action dataexpressing an action taken by the agent in the state, and a reward valueexpressing a reward obtained by the agent as a result of the action, aslearning data to generate, through machine learning, a reward estimatorthat estimates a reward value from the inputted state data and theaction data, wherein the reward estimator generating unit includes: abasis function generating unit generating a plurality of basis functionsby combining a plurality of processing functions; a feature amountvector calculating unit calculating feature amount vectors by inputtingthe state data and the action data included in the action history datainto the plurality of basis functions; and an estimation functioncalculating unit calculating an estimation function that estimates thereward value included in the action history data from the feature amountvectors according to regressive/discriminative learning, wherein thereward estimator includes the plurality of basis functions and theestimation function.
 2. The information processing apparatus accordingto claim 1, further comprising: a reward value estimating unitinputting, into the reward estimator, state data expressing a presentstate in which an agent is present and action data expressing actionsthat can be taken next by the agent to estimate reward values obtainedby the agent as a result of taking the actions; and an action selectingunit selecting an action that has a highest reward value estimated bythe reward value estimating unit out of the actions that can be takennext by the agent in the present state.
 3. The information processingapparatus according to claim 2, further comprising: an action controlunit causing the agent to take an action based on a selection result ofthe action selecting unit; and a history data adding unit accumulatingstate data and action data updated in keeping with an action of theagent, associating a reward value expressing a reward obtained by theagent as a result of the action with the accumulated state data andaction data and adding to the action history data.
 4. The informationprocessing apparatus according to claim 3, wherein the feature amountvector calculating unit is operable when a set of the state data, theaction data, and the reward value has been added to the action historydata, to calculate feature amount vectors for all of the state data andthe action data included in the action history data, and the informationprocessing apparatus further comprises a distribution adjusting unitsampling the sets of the state data, the action data, and the rewardvalue included in the action history data so that a distribution ofcoordinate points indicated by the feature amount vectors in a featureamount space approaches a specified distribution.
 5. The informationprocessing apparatus according to claim 3, wherein the feature amountvector calculating unit is operable when a set of the state data, theaction data, and the reward value has been added to the action historydata, to calculate feature amount vectors for all of the state data andthe action data included in the action history data, and the informationprocessing apparatus further comprises a distribution adjusting unitsetting weightings for the sets of the state data, the action data, andthe reward value included in the action history data so that adistribution of coordinate points indicated by the feature amountvectors in a feature amount space approaches a specified distribution.6. The information processing apparatus according to claim 4, whereinthe distribution adjusting unit sets weightings for the sets of thestate data, the action data, and the reward value included in the actionhistory data so that the distribution of coordinate points indicated bythe feature amount vectors in a feature amount space for the sets of thestate data, the action data, and the reward value remaining aftersampling approaches a specified distribution.
 7. The informationprocessing apparatus according to claim 2, further comprising: apredictor generating unit using the action history data as learning datato generate, through machine learning, a predictor that predicts, fromstate data expressing a state in which the agent is present at a presenttime and action data expressing an action taken by the agent at thepresent time, state data expressing a state of an agent at a next timefollowing the present time; wherein the reward value estimating unitinputs, into the predictor, state data for the present time and actiondata to predict state data expressing a state of the agent at the nexttime, and inputs, into the reward estimator, the state data expressingthe state of the agent at the next time and action data expressing anaction that can be taken by the agent in the state at the next time toestimate a reward value obtained by the agent as a result of taking theaction.
 8. The information processing apparatus according to claim 2,further comprising: a predictor generating unit using the action historydata as learning data to generate, through machine learning, a predictorthat predicts, from state data expressing a state in which the agent ispresent at a present time and action data expressing an action taken bythe agent at the present time, state data expressing a state of an agentat a next time following the present time; wherein the reward valueestimating unit is operable, if a present time is expressed as time t₀,to execute a process that inputs state data at time t₀ and action datainto the predictor to predict state data expressing a state of the agentat a next time t₁, successively executes a process that inputs statedata for a time t_(k) (where k=1 to (n−1) and n≧2) and action dataexpressing an action that can be taken by the agent at time t_(k) intothe predictor to predict state data expressing the state of the agent ata time t_(k+1), and inputs predicted state data expressing a state ofthe agent at a time t_(n) and action data expressing an action that canbe taken by the agent in the state at time t_(n) into the rewardestimator to estimate a reward value obtained by the agent as a resultof taking the action.
 9. The information processing apparatus accordingto claim 1, wherein the reward estimator generating unit uses actionhistory data, which includes state data expressing a state of aplurality of agents, action data expressing actions taken by respectiveagents in the state, and reward values expressing rewards obtained bythe respective agents as a result of the actions, as learning data togenerate, through machine learning, a reward estimator estimating areward value from the inputted state data and action data.
 10. Theinformation processing apparatus according to claim 1, wherein the basisfunction generating unit updates the basis functions based on a geneticalgorithm, the feature amount vector calculating unit is operable whenthe basis functions have been updated, to input the state data and theaction data into the updated basis functions to calculate the featureamount vectors, and the estimation function calculating unit calculatesthe estimation function that estimates the reward value in response toinput of the feature amount vectors calculated using the updated basisfunctions.
 11. An information processing apparatus, comprising: a scorecalculating unit calculating, based on action history data includingstate data expressing a state of an agent, action data expressing anaction taken by the agent in the state, and a reward value expressing areward obtained by the agent as a result of the action, scores for eachaction corresponding to respective state data according to a conditionwhere a high score is assigned to an action taken by an agent whoobtained a large reward and an action not taken by an agent who obtaineda small reward and a low score is assigned to an action not taken by theagent who obtained a large reward and an action taken by the agent whoobtained a small reward; and a score estimator generating unitgenerating, according to machine learning and using the action historydata and the score for each action as learning data, a score estimatorthat estimates a score for each action from state data that has beeninputted, wherein the score estimator generating unit includes: a basisfunction generating unit generating a plurality of basis functions bycombining a plurality of processing functions; a feature amount vectorcalculating unit calculating feature amount vectors by inputting thestate data included in the action history data into the plurality ofbasis functions; and an estimation function calculating unit calculatingan estimation function that estimates the score for each action from thefeature amount vectors according to regressive/discriminative learning,wherein the score estimator includes the plurality of basis functionsand the estimation function.
 12. An information processing methodcomprising: using action history data, which includes state dataexpressing a state of an agent, action data expressing an action takenby the agent in the state, and a reward value expressing a rewardobtained by the agent as a result of the action, as learning data togenerate, through machine learning, a reward estimator that estimates areward value from the inputted state data and the action data, whereingenerating the reward estimator includes: generating a plurality ofbasis functions by combining a plurality of processing functions;calculating feature amount vectors by inputting the state data and theaction data included in the action history data into the plurality ofbasis functions; and calculating an estimation function that estimatesthe reward value included in the action history data from the featureamount vectors according to regressive/discriminative learning, whereinthe reward estimator includes the plurality of basis functions and theestimation function.
 13. An information processing method, comprising:calculating, based on action history data including state dataexpressing a state of an agent, action data expressing an action takenby the agent in the state, and a reward value expressing a rewardobtained by the agent as a result of the action, scores for each actioncorresponding to respective state data according to a condition where ahigh score is assigned to an action taken by an agent who obtained alarge reward and an action not taken by an agent who obtained a smallreward and a low score is assigned to an action not taken by the agentwho obtained a large reward and an action taken by the agent whoobtained a small reward; and generating, according to machine learningand using the action history data and the score for each action aslearning data, a score estimator that estimates a score for each actionfrom state data that has been inputted, wherein generating the scoreestimator includes: generating a plurality of basis functions bycombining a plurality of processing functions; calculating featureamount vectors by inputting the state data included in the actionhistory data into the plurality of basis functions; and calculating anestimation function that estimates the score for each action from thefeature amount vectors according to regressive/discriminative learning,wherein the score estimator includes the plurality of basis functionsand the estimation function.
 14. A program causing a computer torealize: a reward estimator generating function using action historydata, which includes state data expressing a state of an agent, actiondata expressing an action taken by the agent in the state, and a rewardvalue expressing a reward obtained by the agent as a result of theaction, as learning data to generate, through machine learning, a rewardestimator that estimates a reward value from the inputted state data andthe action data, wherein the reward estimator generating functionincludes: a basis function generating function generating a plurality ofbasis functions by combining a plurality of processing functions; afeature amount vector calculating function calculating feature amountvectors by inputting the state data and the action data included in theaction history data into the plurality of basis functions; and anestimation function calculating unit calculating an estimation functionthat estimates the reward value included in the action history data fromthe feature amount vectors according to regressive/discriminativelearning, wherein the reward estimator includes the plurality of basisfunctions and the estimation function.
 15. A program causing a computerto realize: a score calculating function calculating, based on actionhistory data including state data expressing a state of an agent, actiondata expressing an action taken by the agent in the state, and a rewardvalue expressing a reward obtained by the agent as a result of theaction, scores for each action corresponding to respective state dataaccording to a condition where a high score is assigned to an actiontaken by an agent who obtained a large reward and an action not taken byan agent who obtained a small reward and a low score is assigned to anaction not taken by the agent who obtained a large reward and an actiontaken by the agent who obtained a small reward; and a score estimatorgenerating function generating, according to machine learning and usingthe action history data and the score for each action as learning data,a score estimator that estimates a score for each action from state datathat has been inputted, wherein the score estimator generating functionincludes: a basis function generating function generating a plurality ofbasis functions by combining a plurality of processing functions; afeature amount vector calculating function calculating feature amountvectors by inputting the state data included in the action history datainto the plurality of basis functions; and an estimation functioncalculating function calculating an estimation function that estimatesthe score for each action from the feature amount vectors according toregressive/discriminative learning, wherein the score estimator includesthe plurality of basis functions and the estimation function.